#24278F#24278F

#24278F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.166 H 272.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#24278F
RGBrgb(36, 39, 143)
HSLhsl(238, 60%, 35%)
HSVhsv(238, 75%, 56%)
CMYKcmyk(74.8%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.03, 35.29, -57.39)
CIE-LCHlch(23.03, 67.37, 301.59°)
OKLaboklab(35.12% 0.0077 -0.166)
OKLCHoklch(35.12% 0.166 272.6)
XYZxyz(6.4093, 3.8086, 26.3786)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24278F #8F8C24
analogous
#245C8F #24278F #57248F
triadic
#24278F #8F2427 #278F24
tetradic
#24278F #8F245C #8F8C24 #248F57
square
#24278F #8F245C #8F8C24 #248F57
split-complementary
#24278F #8F5724 #5C8F24
monochromatic
#0B0C2D #181A5E #24278F #3034C0 #585CD5

Accessibility & contrast

On white

11.92
#24278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#24278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24278F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24278F#FFFFFF#000000##FFFFFF
##24278F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24278f;
/* rgb */ color: rgb(36, 39, 143);
/* oklch */ color: oklch(35.1% 0.166 272.6);
Tailwind
colors: {
  custom: {
    50: '#7062b1',
    500: '#24278f',
    950: '#000000',
  },
}
SCSS
$custom: #24278f;
$custom-light: #7062b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24278f",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 238.318,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35121,
    "c": 0.16621,
    "h": 272.6
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#24278F
secondary
#B9B755
accent
#DF45E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #24278F

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

Preview Lab → · Contrast checker → · Palette generator →

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