#24278C#24278C

#24278C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.162 H 272.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#24278C
RGBrgb(36, 39, 140)
HSLhsl(238, 59%, 35%)
HSVhsv(238, 74%, 55%)
CMYKcmyk(74.3%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.72, 34.22, -56.03)
CIE-LCHlch(22.72, 65.65, 301.41°)
OKLaboklab(34.81% 0.0081 -0.1621)
OKLCHoklch(34.81% 0.162 272.9)
XYZxyz(6.1851, 3.7189, 25.1977)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24278C #8C8924
analogous
#245B8C #24278C #55248C
triadic
#24278C #8C2427 #278C24
tetradic
#24278C #8C245B #8C8924 #248C55
square
#24278C #8C245B #8C8924 #248C55
split-complementary
#24278C #8C5524 #5B8C24
monochromatic
#0B0C2B #17195B #24278C #3135BD #575AD4

Accessibility & contrast

On white

12.04
#24278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#24278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24278C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24278C#FFFFFF#000000##FFFFFF
##24278C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #24278c;
/* rgb */ color: rgb(36, 39, 140);
/* oklch */ color: oklch(34.8% 0.162 272.9);
Tailwind
colors: {
  custom: {
    50: '#7062af',
    500: '#24278c',
    950: '#000000',
  },
}
SCSS
$custom: #24278c;
$custom-light: #7062af;
$custom-dark: #000000;
JSON
{
  "hex": "#24278c",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 238.269,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.16227,
    "h": 272.9
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#24278C
secondary
#B8B554
accent
#DE46E2
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #24278C

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

Preview Lab → · Contrast checker → · Palette generator →

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