#24278D#24278D

#24278D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.164 H 272.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#24278D
RGBrgb(36, 39, 141)
HSLhsl(238, 59%, 35%)
HSVhsv(238, 74%, 55%)
CMYKcmyk(74.5%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.82, 34.58, -56.49)
CIE-LCHlch(22.82, 66.23, 301.47°)
OKLaboklab(34.91% 0.008 -0.1634)
OKLCHoklch(34.91% 0.164 272.8)
XYZxyz(6.2592, 3.7486, 25.5878)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24278D #8D8A24
analogous
#245B8D #24278D #56248D
triadic
#24278D #8D2427 #278D24
tetradic
#24278D #8D245B #8D8A24 #248D56
square
#24278D #8D245B #8D8A24 #248D56
split-complementary
#24278D #8D5624 #5B8D24
monochromatic
#0B0C2B #181A5C #24278D #3034BE #575BD4

Accessibility & contrast

On white

12.00
#24278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#24278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24278D
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24278D#FFFFFF#000000##FFFFFF
##24278D1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #24278d;
/* rgb */ color: rgb(36, 39, 141);
/* oklch */ color: oklch(34.9% 0.164 272.8);
Tailwind
colors: {
  custom: {
    50: '#7062af',
    500: '#24278d',
    950: '#000000',
  },
}
SCSS
$custom: #24278d;
$custom-light: #7062af;
$custom-dark: #000000;
JSON
{
  "hex": "#24278d",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 238.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.16358,
    "h": 272.8
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#24278D
secondary
#B8B654
accent
#DE45E3
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #24278D

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

Preview Lab → · Contrast checker → · Palette generator →

#24278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva