#24228E#24228E

#24228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.170 H 273.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#24228E
RGBrgb(36, 34, 142)
HSLhsl(241, 61%, 35%)
HSVhsv(241, 76%, 56%)
CMYKcmyk(74.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.84, 37.95, -58.73)
CIE-LCHlch(21.84, 69.92, 302.87°)
OKLaboklab(34.24% 0.0105 -0.1699)
OKLCHoklch(34.24% 0.17 273.5)
XYZxyz(6.1804, 3.4715, 25.9303)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24228E #8C8E22
analogous
#22568E #24228E #5A228E
triadic
#24228E #8E2422 #228E24
tetradic
#24228E #8E2256 #8C8E22 #228E5A
square
#24228E #8E2256 #8C8E22 #228E5A
split-complementary
#24228E #8E5A22 #568E22
monochromatic
#0B0A2B #17165D #24228E #312EBF #5754D6

Accessibility & contrast

On white

12.39
#24228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#24228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24228E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24228E#FFFFFF#000000##FFFFFF
##24228E1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24228e;
/* rgb */ color: rgb(36, 34, 142);
/* oklch */ color: oklch(34.2% 0.170 273.5);
Tailwind
colors: {
  custom: {
    50: '#715fb0',
    500: '#24228e',
    950: '#000000',
  },
}
SCSS
$custom: #24228e;
$custom-light: #715fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#24228e",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 241.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.17022,
    "h": 273.5
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24228E

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

Preview Lab → · Contrast checker → · Palette generator →

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