#252D8E#252D8E

#252D8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.158 H 271.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#252D8E
RGBrgb(37, 45, 142)
HSLhsl(235, 59%, 35%)
HSVhsv(235, 74%, 56%)
CMYKcmyk(73.9%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.39, 31.22, -54.52)
CIE-LCHlch(24.39, 62.83, 299.79°)
OKLaboklab(36.09% 0.0053 -0.1576)
OKLCHoklch(36.09% 0.158 271.9)
XYZxyz(6.5822, 4.2224, 26.0541)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D8E #8E8625
analogous
#25618E #252D8E #52258E
triadic
#252D8E #8E252D #2D8E25
tetradic
#252D8E #8E2561 #8E8625 #258E52
square
#252D8E #8E2561 #8E8625 #258E52
split-complementary
#252D8E #8E5225 #618E25
monochromatic
#0C0E2D #181E5D #252D8E #323CBF #5A63D4

Accessibility & contrast

On white

11.38
#252D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#252D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D8E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D8E#FFFFFF#000000##FFFFFF
##252D8E1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252d8e;
/* rgb */ color: rgb(37, 45, 142);
/* oklch */ color: oklch(36.1% 0.158 271.9);
Tailwind
colors: {
  custom: {
    50: '#7066b0',
    500: '#252d8e',
    950: '#000000',
  },
}
SCSS
$custom: #252d8e;
$custom-light: #7066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#252d8e",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 235.429,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36093,
    "c": 0.15772,
    "h": 271.9
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#252D8E
secondary
#B9B156
accent
#D646E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252D8E

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

Preview Lab → · Contrast checker → · Palette generator →

#252D8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva