#24228B#24228B

#24228B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.166 H 273.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#24228B
RGBrgb(36, 34, 139)
HSLhsl(241, 61%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(74.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.52, 36.92, -57.39)
CIE-LCHlch(21.52, 68.24, 302.75°)
OKLaboklab(33.92% 0.0111 -0.166)
OKLCHoklch(33.92% 0.166 273.8)
XYZxyz(5.9582, 3.3826, 24.7600)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24228B #898B22
analogous
#22558B #24228B #59228B
triadic
#24228B #8B2422 #228B24
tetradic
#24228B #8B2255 #898B22 #228B59
square
#24228B #8B2255 #898B22 #228B59
split-complementary
#24228B #8B5922 #558B22
monochromatic
#0B0A29 #17165A #24228B #312EBC #5553D5

Accessibility & contrast

On white

12.53
#24228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#24228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24228B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24228B#FFFFFF#000000##FFFFFF
##24228B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24228b;
/* rgb */ color: rgb(36, 34, 139);
/* oklch */ color: oklch(33.9% 0.166 273.8);
Tailwind
colors: {
  custom: {
    50: '#705eae',
    500: '#24228b',
    950: '#000000',
  },
}
SCSS
$custom: #24228b;
$custom-light: #705eae;
$custom-dark: #000000;
JSON
{
  "hex": "#24228b",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 241.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33915,
    "c": 0.16639,
    "h": 273.8
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#24228B
secondary
#B7B850
accent
#E444E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #24228B

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

Preview Lab → · Contrast checker → · Palette generator →

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