#24227B#24227B

#24227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.145 H 275.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#24227B
RGBrgb(36, 34, 123)
HSLhsl(241, 57%, 31%)
HSVhsv(241, 72%, 48%)
CMYKcmyk(70.7%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.84, 31.28, -50.07)
CIE-LCHlch(19.84, 59.04, 302.00°)
OKLaboklab(32.21% 0.0139 -0.1446)
OKLCHoklch(32.21% 0.145 275.5)
XYZxyz(4.8736, 2.9487, 19.0474)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24227B #797B22
analogous
#224C7B #24227B #50227B
triadic
#24227B #7B2422 #227B24
tetradic
#24227B #7B224C #797B22 #227B50
square
#24227B #7B224C #797B22 #227B50
split-complementary
#24227B #7B5022 #4C7B22
monochromatic
#08071B #16154B #24227B #322FAB #4D4ACD

Accessibility & contrast

On white

13.21
#24227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#24227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24227B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24227B#FFFFFF#000000##FFFFFF
##24227B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24227b;
/* rgb */ color: rgb(36, 34, 123);
/* oklch */ color: oklch(32.2% 0.145 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c5ea2',
    500: '#24227b',
    950: '#000000',
  },
}
SCSS
$custom: #24227b;
$custom-light: #6c5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#24227b",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 241.348,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32211,
    "c": 0.14531,
    "h": 275.5
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#24227B
secondary
#ACAE4B
accent
#E048DD
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #24227B

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

Preview Lab → · Contrast checker → · Palette generator →

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