#24247F#24247F

#24247F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.148 H 274.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#24247F
RGBrgb(36, 36, 127)
HSLhsl(240, 56%, 32%)
HSVhsv(240, 72%, 50%)
CMYKcmyk(71.7%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.71, 31.45, -51.18)
CIE-LCHlch(20.71, 60.07, 301.57°)
OKLaboklab(32.96% 0.0119 -0.1479)
OKLCHoklch(32.96% 0.148 274.6)
XYZxyz(5.1879, 3.1686, 20.4128)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24247F #7F7F24
analogous
#24527F #24247F #52247F
triadic
#24247F #7F2424 #247F24
tetradic
#24247F #7F2452 #7F7F24 #247F52
square
#24247F #7F2452 #7F7F24 #247F52
split-complementary
#24247F #7F5224 #527F24
monochromatic
#090920 #16164F #24247F #3232AF #5050CD

Accessibility & contrast

On white

12.85
#24247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#24247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24247F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24247F#FFFFFF#000000##FFFFFF
##24247F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #24247f;
/* rgb */ color: rgb(36, 36, 127);
/* oklch */ color: oklch(33.0% 0.148 274.6);
Tailwind
colors: {
  custom: {
    50: '#6d5fa5',
    500: '#24247f',
    950: '#000000',
  },
}
SCSS
$custom: #24247f;
$custom-light: #6d5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#24247f",
  "rgb": {
    "r": 36,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3296,
    "c": 0.14837,
    "h": 274.6
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#24247F
secondary
#B1B14E
accent
#DF49DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24247F

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

Preview Lab → · Contrast checker → · Palette generator →

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