#24229F#24229F

#24229F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.191 H 272.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#24229F
RGBrgb(36, 34, 159)
HSLhsl(241, 65%, 38%)
HSVhsv(241, 79%, 62%)
CMYKcmyk(77.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.74, 43.68, -66.05)
CIE-LCHlch(23.74, 79.19, 303.48°)
OKLaboklab(36.14% 0.007 -0.1912)
OKLCHoklch(36.14% 0.191 272.1)
XYZxyz(7.5555, 4.0215, 33.1722)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24229F #9D9F22
analogous
#225E9F #24229F #62229F
triadic
#24229F #9F2422 #229F24
tetradic
#24229F #9F225E #9D9F22 #229F62
square
#24229F #9F225E #9D9F22 #229F62
split-complementary
#24229F #9F6222 #5E9F22
monochromatic
#0D0C3A #19176D #24229F #2F2DD1 #615FDD

Accessibility & contrast

On white

11.64
#24229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#24229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24229F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24229F#FFFFFF#000000##FFFFFF
##24229F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #24229f;
/* rgb */ color: rgb(36, 34, 159);
/* oklch */ color: oklch(36.1% 0.191 272.1);
Tailwind
colors: {
  custom: {
    50: '#7560bd',
    500: '#24229f',
    950: '#000000',
  },
}
SCSS
$custom: #24229f;
$custom-light: #7560bd;
$custom-dark: #000000;
JSON
{
  "hex": "#24229f",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 240.96,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36145,
    "c": 0.19133,
    "h": 272.1
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#24229F
secondary
#C0C15B
accent
#E840E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #24229F

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

Preview Lab → · Contrast checker → · Palette generator →

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