#24277E#24277E

#24277E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.143 H 274.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#24277E
RGBrgb(36, 39, 126)
HSLhsl(238, 56%, 32%)
HSVhsv(238, 71%, 49%)
CMYKcmyk(71.4%, 69%, 0%, 50.6%)
CIE-LABlab(21.33, 29.13, -49.53)
CIE-LCHlch(21.33, 57.46, 300.47°)
OKLaboklab(33.38% 0.0099 -0.1431)
OKLCHoklch(33.38% 0.143 274)
XYZxyz(5.2177, 3.3320, 20.1028)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24277E #7E7B24
analogous
#24547E #24277E #4E247E
triadic
#24277E #7E2427 #277E24
tetradic
#24277E #7E2454 #7E7B24 #247E4E
square
#24277E #7E2454 #7E7B24 #247E4E
split-complementary
#24277E #7E4E24 #547E24
monochromatic
#090A1F #16184E #24277E #3236AE #5054CD

Accessibility & contrast

On white

12.60
#24277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#24277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24277E
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24277E#FFFFFF#000000##FFFFFF
##24277E1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24277e;
/* rgb */ color: rgb(36, 39, 126);
/* oklch */ color: oklch(33.4% 0.143 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c61a4',
    500: '#24277e',
    950: '#000000',
  },
}
SCSS
$custom: #24277e;
$custom-light: #6c61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24277e",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 238,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.1434,
    "h": 274
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#24277E
secondary
#B0AD4E
accent
#DA49DF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #24277E

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

Preview Lab → · Contrast checker → · Palette generator →

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