#24228F#24228F

#24228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 273.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#24228F
RGBrgb(36, 34, 143)
HSLhsl(241, 62%, 35%)
HSVhsv(241, 76%, 56%)
CMYKcmyk(74.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.95, 38.30, -59.17)
CIE-LCHlch(21.95, 70.48, 302.91°)
OKLaboklab(34.35% 0.0103 -0.1712)
OKLCHoklch(34.35% 0.171 273.4)
XYZxyz(6.2559, 3.5017, 26.3275)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24228F #8D8F22
analogous
#22578F #24228F #5B228F
triadic
#24228F #8F2422 #228F24
tetradic
#24228F #8F2257 #8D8F22 #228F5B
square
#24228F #8F2257 #8D8F22 #228F5B
split-complementary
#24228F #8F5B22 #578F22
monochromatic
#0B0A2C #18165E #24228F #302EC0 #5755D7

Accessibility & contrast

On white

12.35
#24228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#24228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24228F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24228F#FFFFFF#000000##FFFFFF
##24228F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #24228f;
/* rgb */ color: rgb(36, 34, 143);
/* oklch */ color: oklch(34.4% 0.171 273.4);
Tailwind
colors: {
  custom: {
    50: '#715fb1',
    500: '#24228f',
    950: '#000000',
  },
}
SCSS
$custom: #24228f;
$custom-light: #715fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#24228f",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 241.101,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34353,
    "c": 0.17149,
    "h": 273.4
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#24228F
secondary
#B8BA52
accent
#E543E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #24228F

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

Preview Lab → · Contrast checker → · Palette generator →

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