#252B81#252B81

#252B81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.142 H 273.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#252B81
RGBrgb(37, 43, 129)
HSLhsl(236, 55%, 33%)
HSVhsv(236, 71%, 51%)
CMYKcmyk(71.3%, 66.7%, 0%, 49.4%)
CIE-LABlab(22.67, 27.73, -49.22)
CIE-LCHlch(22.67, 56.49, 299.40°)
OKLaboklab(34.46% 0.0078 -0.1421)
OKLCHoklch(34.46% 0.142 273.2)
XYZxyz(5.5879, 3.7055, 21.1854)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B81 #817B25
analogous
#255981 #252B81 #4D2581
triadic
#252B81 #81252B #2B8125
tetradic
#252B81 #812559 #817B25 #25814D
square
#252B81 #812559 #817B25 #25814D
split-complementary
#252B81 #814D25 #598125
monochromatic
#0A0B22 #171B51 #252B81 #333BB1 #535BCE

Accessibility & contrast

On white

12.06
#252B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B81
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B81#FFFFFF#000000##FFFFFF
##252B811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252b81;
/* rgb */ color: rgb(37, 43, 129);
/* oklch */ color: oklch(34.5% 0.142 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d64a6',
    500: '#252b81',
    950: '#000000',
  },
}
SCSS
$custom: #252b81;
$custom-light: #6d64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252b81",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 236.087,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34463,
    "c": 0.14232,
    "h": 273.2
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#252B81
secondary
#B2AB50
accent
#D549DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #252B81

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

Preview Lab → · Contrast checker → · Palette generator →

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