#24218B#24218B

#24218B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.167 H 274.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#24218B
RGBrgb(36, 33, 139)
HSLhsl(242, 62%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(74.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.31, 37.51, -57.74)
CIE-LCHlch(21.31, 68.85, 303.01°)
OKLaboklab(33.77% 0.0116 -0.167)
OKLCHoklch(33.77% 0.167 274)
XYZxyz(5.9301, 3.3263, 24.7506)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24218B #888B21
analogous
#21538B #24218B #59218B
triadic
#24218B #8B2421 #218B24
tetradic
#24218B #8B2153 #888B21 #218B59
square
#24218B #8B2153 #888B21 #218B59
split-complementary
#24218B #8B5921 #538B21
monochromatic
#0A0A28 #17155A #24218B #312DBC #5551D6

Accessibility & contrast

On white

12.61
#24218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#24218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24218B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24218B#FFFFFF#000000##FFFFFF
##24218B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24218b;
/* rgb */ color: rgb(36, 33, 139);
/* oklch */ color: oklch(33.8% 0.167 274.0);
Tailwind
colors: {
  custom: {
    50: '#705eae',
    500: '#24218b',
    950: '#000000',
  },
}
SCSS
$custom: #24218b;
$custom-light: #705eae;
$custom-dark: #000000;
JSON
{
  "hex": "#24218b",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 241.698,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.16742,
    "h": 274
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#24218B
secondary
#B6B94F
accent
#E543E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #24218B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#24218B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva