#24277D#24277D

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

Color values

HEX#24277D
RGBrgb(36, 39, 125)
HSLhsl(238, 55%, 32%)
HSVhsv(238, 71%, 49%)
CMYKcmyk(71.2%, 68.8%, 0%, 51%)
CIE-LABlab(21.23, 28.77, -49.05)
CIE-LCHlch(21.23, 56.86, 300.39°)
OKLaboklab(33.28% 0.01 -0.1417)
OKLCHoklch(33.28% 0.142 274)
XYZxyz(5.1535, 3.3063, 19.7646)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24277D #7D7A24
analogous
#24547D #24277D #4E247D
triadic
#24277D #7D2427 #277D24
tetradic
#24277D #7D2454 #7D7A24 #247D4E
square
#24277D #7D2454 #7D7A24 #247D4E
split-complementary
#24277D #7D4E24 #547D24
monochromatic
#09091E #16184D #24277D #3236AD #4F53CC

Accessibility & contrast

On white

12.64
#24277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#24277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24277D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24277D#FFFFFF#000000##FFFFFF
##24277D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24277d;
/* rgb */ color: rgb(36, 39, 125);
/* oklch */ color: oklch(33.3% 0.142 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c61a4',
    500: '#24277d',
    950: '#000000',
  },
}
SCSS
$custom: #24277d;
$custom-light: #6c61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24277d",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 237.978,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.14201,
    "h": 274
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24277D

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

Preview Lab → · Contrast checker → · Palette generator →

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