#24288F#24288F

#24288F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.165 H 272.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#24288F
RGBrgb(36, 40, 143)
HSLhsl(238, 60%, 35%)
HSVhsv(238, 75%, 56%)
CMYKcmyk(74.8%, 72%, 0%, 43.9%)
CIE-LABlab(23.25, 34.67, -57.02)
CIE-LCHlch(23.25, 66.73, 301.30°)
OKLaboklab(35.28% 0.0071 -0.1649)
OKLCHoklch(35.28% 0.165 272.5)
XYZxyz(6.4426, 3.8752, 26.3897)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24288F #8F8B24
analogous
#245D8F #24288F #55248F
triadic
#24288F #8F2428 #288F24
tetradic
#24288F #8F245D #8F8B24 #248F55
square
#24288F #8F245D #8F8B24 #248F55
split-complementary
#24288F #8F5524 #5D8F24
monochromatic
#0B0D2D #181A5E #24288F #3036C0 #585DD5

Accessibility & contrast

On white

11.83
#24288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#24288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24288F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24288F#FFFFFF#000000##FFFFFF
##24288F1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #24288f;
/* rgb */ color: rgb(36, 40, 143);
/* oklch */ color: oklch(35.3% 0.165 272.5);
Tailwind
colors: {
  custom: {
    50: '#7063b1',
    500: '#24288f',
    950: '#000000',
  },
}
SCSS
$custom: #24288f;
$custom-light: #7063b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24288f",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 237.757,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35284,
    "c": 0.16509,
    "h": 272.5
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#24288F
secondary
#B9B655
accent
#DD45E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #24288F

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

Preview Lab → · Contrast checker → · Palette generator →

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