#24277F#24277F

#24277F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.145 H 273.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#24277F
RGBrgb(36, 39, 127)
HSLhsl(238, 56%, 32%)
HSVhsv(238, 72%, 50%)
CMYKcmyk(71.7%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.42, 29.50, -50.00)
CIE-LCHlch(21.42, 58.06, 300.54°)
OKLaboklab(33.48% 0.0098 -0.1444)
OKLCHoklch(33.48% 0.145 273.9)
XYZxyz(5.2826, 3.3579, 20.4443)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24277F #7F7C24
analogous
#24557F #24277F #4F247F
triadic
#24277F #7F2427 #277F24
tetradic
#24277F #7F2455 #7F7C24 #247F4F
square
#24277F #7F2455 #7F7C24 #247F4F
split-complementary
#24277F #7F4F24 #557F24
monochromatic
#090A20 #16184F #24277F #3236AF #5054CD

Accessibility & contrast

On white

12.56
#24277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24277F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24277F#FFFFFF#000000##FFFFFF
##24277F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24277f;
/* rgb */ color: rgb(36, 39, 127);
/* oklch */ color: oklch(33.5% 0.145 273.9);
Tailwind
colors: {
  custom: {
    50: '#6d61a5',
    500: '#24277f',
    950: '#000000',
  },
}
SCSS
$custom: #24277f;
$custom-light: #6d61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24277f",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 238.022,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33478,
    "c": 0.14478,
    "h": 273.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#24277F
secondary
#B1AE4E
accent
#DA49DF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #24277F

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

Preview Lab → · Contrast checker → · Palette generator →

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