#24257E#24257E

#24257E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.146 H 274.5°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#24257E
RGBrgb(36, 37, 126)
HSLhsl(239, 56%, 32%)
HSVhsv(239, 71%, 49%)
CMYKcmyk(71.4%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.84, 30.44, -50.32)
CIE-LCHlch(20.84, 58.81, 301.17°)
OKLaboklab(33.03% 0.0114 -0.1454)
OKLCHoklch(33.03% 0.146 274.5)
XYZxyz(5.1538, 3.2041, 20.0815)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24257E #7E7D24
analogous
#24527E #24257E #50247E
triadic
#24257E #7E2425 #257E24
tetradic
#24257E #7E2452 #7E7D24 #247E50
square
#24257E #7E2452 #7E7D24 #247E50
split-complementary
#24257E #7E5024 #527E24
monochromatic
#09091F #16174E #24257E #3233AE #5051CD

Accessibility & contrast

On white

12.80
#24257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#24257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24257E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24257E#FFFFFF#000000##FFFFFF
##24257E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24257e;
/* rgb */ color: rgb(36, 37, 126);
/* oklch */ color: oklch(33.0% 0.146 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c60a4',
    500: '#24257e',
    950: '#000000',
  },
}
SCSS
$custom: #24257e;
$custom-light: #6c60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24257e",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 239.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.14582,
    "h": 274.5
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#24257E
secondary
#B0AF4E
accent
#DD49DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #24257E

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

Preview Lab → · Contrast checker → · Palette generator →

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