#252B7E#252B7E

#252B7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.138 H 273.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#252B7E
RGBrgb(37, 43, 126)
HSLhsl(236, 55%, 32%)
HSVhsv(236, 71%, 49%)
CMYKcmyk(70.6%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.40, 26.61, -47.77)
CIE-LCHlch(22.40, 54.68, 299.12°)
OKLaboklab(34.18% 0.0081 -0.1379)
OKLCHoklch(34.18% 0.138 273.3)
XYZxyz(5.3915, 3.6269, 20.1506)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B7E #7E7825
analogous
#25587E #252B7E #4C257E
triadic
#252B7E #7E252B #2B7E25
tetradic
#252B7E #7E2558 #7E7825 #257E4C
square
#252B7E #7E2558 #7E7825 #257E4C
split-complementary
#252B7E #7E4C25 #587E25
monochromatic
#090B1F #171B4F #252B7E #333BAD #515ACC

Accessibility & contrast

On white

12.17
#252B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B7E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B7E#FFFFFF#000000##FFFFFF
##252B7E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252b7e;
/* rgb */ color: rgb(37, 43, 126);
/* oklch */ color: oklch(34.2% 0.138 273.3);
Tailwind
colors: {
  custom: {
    50: '#6c64a4',
    500: '#252b7e',
    950: '#000000',
  },
}
SCSS
$custom: #252b7e;
$custom-light: #6c64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#252b7e",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 235.955,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.1381,
    "h": 273.3
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#252B7E
secondary
#B0AA4F
accent
#D44ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #252B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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