#252E81#252E81

#252E81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.138 H 272.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#252E81
RGBrgb(37, 46, 129)
HSLhsl(234, 55%, 33%)
HSVhsv(234, 71%, 51%)
CMYKcmyk(71.3%, 64.3%, 0%, 49.4%)
CIE-LABlab(23.44, 25.70, -47.95)
CIE-LCHlch(23.44, 54.41, 298.19°)
OKLaboklab(35.03% 0.0055 -0.1384)
OKLCHoklch(35.03% 0.138 272.3)
XYZxyz(5.7011, 3.9317, 21.2231)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E81 #817825
analogous
#255C81 #252E81 #4A2581
triadic
#252E81 #81252E #2E8125
tetradic
#252E81 #81255C #817825 #25814A
square
#252E81 #81255C #817825 #25814A
split-complementary
#252E81 #814A25 #5C8125
monochromatic
#0A0C22 #171D51 #252E81 #333FB1 #535FCE

Accessibility & contrast

On white

11.76
#252E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#252E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E81
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E81#FFFFFF#000000##FFFFFF
##252E811.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252e81;
/* rgb */ color: rgb(37, 46, 129);
/* oklch */ color: oklch(35.0% 0.138 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d66a6',
    500: '#252e81',
    950: '#000000',
  },
}
SCSS
$custom: #252e81;
$custom-light: #6d66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252e81",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 234.13,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35029,
    "c": 0.13849,
    "h": 272.3
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#252E81
secondary
#B2A850
accent
#D049DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #252E81

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

Preview Lab → · Contrast checker → · Palette generator →

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