#24278E#24278E

#24278E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.165 H 272.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#24278E
RGBrgb(36, 39, 142)
HSLhsl(238, 60%, 35%)
HSVhsv(238, 75%, 56%)
CMYKcmyk(74.6%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.93, 34.93, -56.94)
CIE-LCHlch(22.93, 66.80, 301.53°)
OKLaboklab(35.02% 0.0078 -0.1647)
OKLCHoklch(35.02% 0.165 272.7)
XYZxyz(6.3339, 3.7785, 25.9814)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24278E #8E8B24
analogous
#245C8E #24278E #56248E
triadic
#24278E #8E2427 #278E24
tetradic
#24278E #8E245C #8E8B24 #248E56
square
#24278E #8E245C #8E8B24 #248E56
split-complementary
#24278E #8E5624 #5C8E24
monochromatic
#0B0C2C #181A5D #24278E #3034BF #585BD5

Accessibility & contrast

On white

11.96
#24278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24278E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24278E#FFFFFF#000000##FFFFFF
##24278E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #24278e;
/* rgb */ color: rgb(36, 39, 142);
/* oklch */ color: oklch(35.0% 0.165 272.7);
Tailwind
colors: {
  custom: {
    50: '#7062b0',
    500: '#24278e',
    950: '#000000',
  },
}
SCSS
$custom: #24278e;
$custom-light: #7062b0;
$custom-dark: #000000;
JSON
{
  "hex": "#24278e",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 238.302,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.1649,
    "h": 272.7
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#24278E
secondary
#B9B655
accent
#DE45E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #24278E

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

Preview Lab → · Contrast checker → · Palette generator →

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