#252B79#252B79

#252B79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.131 H 273.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#252B79
RGBrgb(37, 43, 121)
HSLhsl(236, 53%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(69.4%, 64.5%, 0%, 52.5%)
CIE-LABlab(21.95, 24.73, -45.33)
CIE-LCHlch(21.95, 51.64, 298.62°)
OKLaboklab(33.71% 0.0083 -0.1307)
OKLCHoklch(33.71% 0.131 273.6)
XYZxyz(5.0769, 3.5011, 18.4937)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B79 #797325
analogous
#255579 #252B79 #492579
triadic
#252B79 #79252B #2B7925
tetradic
#252B79 #792555 #797325 #257949
square
#252B79 #792555 #797325 #257949
split-complementary
#252B79 #794925 #557925
monochromatic
#080A1B #171A4A #252B79 #333CA8 #4F58C9

Accessibility & contrast

On white

12.35
#252B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#252B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B79
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B79#FFFFFF#000000##FFFFFF
##252B791.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252b79;
/* rgb */ color: rgb(37, 43, 121);
/* oklch */ color: oklch(33.7% 0.131 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b64a0',
    500: '#252b79',
    950: '#000000',
  },
}
SCSS
$custom: #252b79;
$custom-light: #6b64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252b79",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 235.714,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33707,
    "c": 0.13098,
    "h": 273.6
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#252B79
secondary
#ABA54E
accent
#D24BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #252B79

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

Preview Lab → · Contrast checker → · Palette generator →

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