#24255B#24255B

#24255B is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.095 H 278.2°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#24255B
RGBrgb(36, 37, 91)
HSLhsl(239, 43%, 25%)
HSVhsv(239, 60%, 36%)
CMYKcmyk(60.4%, 59.3%, 0%, 64.3%)
CIE-LABlab(17.71, 17.45, -32.71)
CIE-LCHlch(17.71, 37.07, 298.08°)
OKLaboklab(29.75% 0.0134 -0.0937)
OKLCHoklch(29.75% 0.095 278.2)
XYZxyz(3.2769, 2.4533, 10.1964)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24255B #5B5A24
analogous
#24415B #24255B #3F245B
triadic
#24255B #5B2425 #255B24
tetradic
#24255B #5B2441 #5B5A24 #245B3F
square
#24255B #5B2441 #5B5A24 #245B3F
split-complementary
#24255B #5B3F24 #415B24
monochromatic
#090916 #13132F #24255B #353787 #4749B3

Accessibility & contrast

On white

14.09
#24255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#24255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24255B
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24255B#FFFFFF#000000##FFFFFF
##24255B1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#07313C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24255b;
/* rgb */ color: rgb(36, 37, 91);
/* oklch */ color: oklch(29.8% 0.095 278.2);
Tailwind
colors: {
  custom: {
    50: '#655f8a',
    500: '#24255b',
    950: '#000000',
  },
}
SCSS
$custom: #24255b;
$custom-light: #655f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#24255b",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 238.909,
    "s": 43.307,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.09465,
    "h": 278.2
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#24255B
secondary
#8F8D4C
accent
#D155D3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #24255B

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

Preview Lab → · Contrast checker → · Palette generator →

#24255B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva