#24229B#24229B

#24229B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.186 H 272.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#24229B
RGBrgb(36, 34, 155)
HSLhsl(241, 64%, 37%)
HSVhsv(241, 78%, 61%)
CMYKcmyk(76.8%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.29, 42.36, -64.36)
CIE-LCHlch(23.29, 77.05, 303.35°)
OKLaboklab(35.69% 0.0079 -0.1863)
OKLCHoklch(35.69% 0.186 272.4)
XYZxyz(7.2140, 3.8849, 31.3737)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24229B #999B22
analogous
#225C9B #24229B #61229B
triadic
#24229B #9B2422 #229B24
tetradic
#24229B #9B225C #999B22 #229B61
square
#24229B #9B225C #999B22 #229B61
split-complementary
#24229B #9B6122 #5C9B22
monochromatic
#0D0C37 #181769 #24229B #302DCD #5E5CDB

Accessibility & contrast

On white

11.82
#24229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#24229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24229B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24229B#FFFFFF#000000##FFFFFF
##24229B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #24229b;
/* rgb */ color: rgb(36, 34, 155);
/* oklch */ color: oklch(35.7% 0.186 272.4);
Tailwind
colors: {
  custom: {
    50: '#745fba',
    500: '#24229b',
    950: '#000000',
  },
}
SCSS
$custom: #24229b;
$custom-light: #745fba;
$custom-dark: #000000;
JSON
{
  "hex": "#24229b",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 240.992,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35692,
    "c": 0.18645,
    "h": 272.4
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#24229B
secondary
#BEC059
accent
#E741E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #24229B

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

Preview Lab → · Contrast checker → · Palette generator →

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