#252D89#252D89

#252D89 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.151 H 272.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#252D89
RGBrgb(37, 45, 137)
HSLhsl(235, 57%, 34%)
HSVhsv(235, 73%, 54%)
CMYKcmyk(73%, 67.2%, 0%, 46.3%)
CIE-LABlab(23.92, 29.37, -52.19)
CIE-LCHlch(23.92, 59.89, 299.37°)
OKLaboklab(35.6% 0.0057 -0.1508)
OKLCHoklch(35.6% 0.151 272.2)
XYZxyz(6.2152, 4.0756, 24.1212)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D89 #898125
analogous
#255F89 #252D89 #4F2589
triadic
#252D89 #89252D #2D8925
tetradic
#252D89 #89255F #898125 #25894F
square
#252D89 #89255F #898125 #25894F
split-complementary
#252D89 #894F25 #5F8925
monochromatic
#0B0D29 #181D59 #252D89 #323DB9 #5761D2

Accessibility & contrast

On white

11.57
#252D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#252D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D89
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D89#FFFFFF#000000##FFFFFF
##252D891.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252d89;
/* rgb */ color: rgb(37, 45, 137);
/* oklch */ color: oklch(35.6% 0.151 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f66ac',
    500: '#252d89',
    950: '#000000',
  },
}
SCSS
$custom: #252d89;
$custom-light: #6f66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#252d89",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 235.2,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35603,
    "c": 0.15091,
    "h": 272.2
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#252D89
secondary
#B6AE54
accent
#D447E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252D89

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

Preview Lab → · Contrast checker → · Palette generator →

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