#24218F#24218F

#24218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.172 H 273.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#24218F
RGBrgb(36, 33, 143)
HSLhsl(242, 63%, 35%)
HSVhsv(242, 77%, 56%)
CMYKcmyk(74.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.75, 38.88, -59.51)
CIE-LCHlch(21.75, 71.08, 303.16°)
OKLaboklab(34.21% 0.0108 -0.1721)
OKLCHoklch(34.21% 0.172 273.6)
XYZxyz(6.2277, 3.4453, 26.3181)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24218F #8C8F21
analogous
#21558F #24218F #5B218F
triadic
#24218F #8F2421 #218F24
tetradic
#24218F #8F2155 #8C8F21 #218F5B
square
#24218F #8F2155 #8C8F21 #218F5B
split-complementary
#24218F #8F5B21 #558F21
monochromatic
#0B0A2C #17165D #24218F #312CC1 #5753D7

Accessibility & contrast

On white

12.43
#24218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#24218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24218F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24218F#FFFFFF#000000##FFFFFF
##24218F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24218f;
/* rgb */ color: rgb(36, 33, 143);
/* oklch */ color: oklch(34.2% 0.172 273.6);
Tailwind
colors: {
  custom: {
    50: '#715eb1',
    500: '#24218f',
    950: '#000000',
  },
}
SCSS
$custom: #24218f;
$custom-light: #715eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#24218f",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 241.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34208,
    "c": 0.17249,
    "h": 273.6
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#24218F
secondary
#B8BB51
accent
#E642E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #24218F

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

Preview Lab → · Contrast checker → · Palette generator →

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