#24227E#24227E

#24227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.149 H 275.2°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#24227E
RGBrgb(36, 34, 126)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(71.4%, 73%, 0%, 50.6%)
CIE-LABlab(20.14, 32.35, -51.47)
CIE-LCHlch(20.14, 60.79, 302.15°)
OKLaboklab(32.52% 0.0134 -0.1487)
OKLCHoklch(32.52% 0.149 275.2)
XYZxyz(5.0642, 3.0250, 20.0516)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24227E #7C7E22
analogous
#224E7E #24227E #52227E
triadic
#24227E #7E2422 #227E24
tetradic
#24227E #7E224E #7C7E22 #227E52
square
#24227E #7E224E #7C7E22 #227E52
split-complementary
#24227E #7E5222 #4E7E22
monochromatic
#08081E #16154E #24227E #322FAE #4F4CCF

Accessibility & contrast

On white

13.08
#24227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#24227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24227E
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24227E#FFFFFF#000000##FFFFFF
##24227E1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #24227e;
/* rgb */ color: rgb(36, 34, 126);
/* oklch */ color: oklch(32.5% 0.149 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d5ea4',
    500: '#24227e',
    950: '#000000',
  },
}
SCSS
$custom: #24227e;
$custom-light: #6d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#24227e",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 241.304,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32524,
    "c": 0.14934,
    "h": 275.2
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#24227E
secondary
#AEB14B
accent
#E147DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24227E

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

Preview Lab → · Contrast checker → · Palette generator →

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