#24228C#24228C

#24228C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.168 H 273.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#24228C
RGBrgb(36, 34, 140)
HSLhsl(241, 61%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(74.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.62, 37.26, -57.84)
CIE-LCHlch(21.62, 68.80, 302.79°)
OKLaboklab(34.02% 0.0109 -0.1673)
OKLCHoklch(34.02% 0.168 273.7)
XYZxyz(6.0316, 3.4120, 25.1466)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24228C #8A8C22
analogous
#22558C #24228C #59228C
triadic
#24228C #8C2422 #228C24
tetradic
#24228C #8C2255 #8A8C22 #228C59
square
#24228C #8C2255 #8A8C22 #228C59
split-complementary
#24228C #8C5922 #558C22
monochromatic
#0B0A2A #17165B #24228C #312EBD #5653D5

Accessibility & contrast

On white

12.48
#24228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24228C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24228C#FFFFFF#000000##FFFFFF
##24228C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24228c;
/* rgb */ color: rgb(36, 34, 140);
/* oklch */ color: oklch(34.0% 0.168 273.7);
Tailwind
colors: {
  custom: {
    50: '#705faf',
    500: '#24228c',
    950: '#000000',
  },
}
SCSS
$custom: #24228c;
$custom-light: #705faf;
$custom-dark: #000000;
JSON
{
  "hex": "#24228c",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 241.132,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34024,
    "c": 0.16766,
    "h": 273.7
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#24228C
secondary
#B7B951
accent
#E444E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #24228C

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

Preview Lab → · Contrast checker → · Palette generator →

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