#252D8F#252D8F

#252D8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.159 H 271.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#252D8F
RGBrgb(37, 45, 143)
HSLhsl(235, 59%, 35%)
HSVhsv(235, 74%, 56%)
CMYKcmyk(74.1%, 68.5%, 0%, 43.9%)
CIE-LABlab(24.49, 31.58, -54.98)
CIE-LCHlch(24.49, 63.41, 299.87°)
OKLaboklab(36.19% 0.0052 -0.159)
OKLCHoklch(36.19% 0.159 271.9)
XYZxyz(6.6576, 4.2526, 26.4512)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D8F #8F8725
analogous
#25628F #252D8F #52258F
triadic
#252D8F #8F252D #2D8F25
tetradic
#252D8F #8F2562 #8F8725 #258F52
square
#252D8F #8F2562 #8F8725 #258F52
split-complementary
#252D8F #8F5225 #628F25
monochromatic
#0C0E2E #181E5E #252D8F #323CC0 #5A63D4

Accessibility & contrast

On white

11.35
#252D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#252D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D8F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D8F#FFFFFF#000000##FFFFFF
##252D8F1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252d8f;
/* rgb */ color: rgb(37, 45, 143);
/* oklch */ color: oklch(36.2% 0.159 271.9);
Tailwind
colors: {
  custom: {
    50: '#7066b1',
    500: '#252d8f',
    950: '#000000',
  },
}
SCSS
$custom: #252d8f;
$custom-light: #7066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#252d8f",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 235.472,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36192,
    "c": 0.15907,
    "h": 271.9
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#252D8F
secondary
#B9B257
accent
#D646E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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