#24228D#24228D

#24228D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.169 H 273.6°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#24228D
RGBrgb(36, 34, 141)
HSLhsl(241, 61%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(74.5%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.73, 37.61, -58.28)
CIE-LCHlch(21.73, 69.36, 302.83°)
OKLaboklab(34.13% 0.0107 -0.1686)
OKLCHoklch(34.13% 0.169 273.6)
XYZxyz(6.1057, 3.4416, 25.5367)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24228D #8B8D22
analogous
#22568D #24228D #59228D
triadic
#24228D #8D2422 #228D24
tetradic
#24228D #8D2256 #8B8D22 #228D59
square
#24228D #8D2256 #8B8D22 #228D59
split-complementary
#24228D #8D5922 #568D22
monochromatic
#0B0A2A #17165C #24228D #312EBE #5654D6

Accessibility & contrast

On white

12.44
#24228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24228D
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24228D#FFFFFF#000000##FFFFFF
##24228D1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24228d;
/* rgb */ color: rgb(36, 34, 141);
/* oklch */ color: oklch(34.1% 0.169 273.6);
Tailwind
colors: {
  custom: {
    50: '#705faf',
    500: '#24228d',
    950: '#000000',
  },
}
SCSS
$custom: #24228d;
$custom-light: #705faf;
$custom-dark: #000000;
JSON
{
  "hex": "#24228d",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 241.121,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.16895,
    "h": 273.6
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#24228D
secondary
#B8B951
accent
#E444E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #24228D

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

Preview Lab → · Contrast checker → · Palette generator →

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