#24227D#24227D

#24227D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.148 H 275.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#24227D
RGBrgb(36, 34, 125)
HSLhsl(241, 57%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(71.2%, 72.8%, 0%, 51%)
CIE-LABlab(20.04, 32.00, -51.00)
CIE-LCHlch(20.04, 60.21, 302.10°)
OKLaboklab(32.42% 0.0136 -0.1474)
OKLCHoklch(32.42% 0.148 275.3)
XYZxyz(5.0000, 2.9993, 19.7135)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24227D #7B7D22
analogous
#224D7D #24227D #51227D
triadic
#24227D #7D2422 #227D24
tetradic
#24227D #7D224D #7B7D22 #227D51
square
#24227D #7D224D #7B7D22 #227D51
split-complementary
#24227D #7D5122 #4D7D22
monochromatic
#08081D #16154D #24227D #322FAD #4E4BCE

Accessibility & contrast

On white

13.13
#24227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#24227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24227D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24227D#FFFFFF#000000##FFFFFF
##24227D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24227d;
/* rgb */ color: rgb(36, 34, 125);
/* oklch */ color: oklch(32.4% 0.148 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ea4',
    500: '#24227d',
    950: '#000000',
  },
}
SCSS
$custom: #24227d;
$custom-light: #6d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#24227d",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 241.319,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3242,
    "c": 0.148,
    "h": 275.3
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#24227D
secondary
#ADB04B
accent
#E047DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24227D

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

Preview Lab → · Contrast checker → · Palette generator →

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