#252F81#252F81

#252F81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.137 H 272.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#252F81
RGBrgb(37, 47, 129)
HSLhsl(233, 55%, 33%)
HSVhsv(233, 71%, 51%)
CMYKcmyk(71.3%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.71, 25.02, -47.52)
CIE-LCHlch(23.71, 53.71, 297.77°)
OKLaboklab(35.22% 0.0047 -0.1371)
OKLCHoklch(35.22% 0.137 272)
XYZxyz(5.7406, 4.0108, 21.2362)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F81 #817725
analogous
#255D81 #252F81 #492581
triadic
#252F81 #81252F #2F8125
tetradic
#252F81 #81255D #817725 #258149
square
#252F81 #81255D #817725 #258149
split-complementary
#252F81 #814925 #5D8125
monochromatic
#0A0C22 #171E51 #252F81 #3340B1 #5360CE

Accessibility & contrast

On white

11.65
#252F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#252F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F81
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F81#FFFFFF#000000##FFFFFF
##252F811.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252f81;
/* rgb */ color: rgb(37, 47, 129);
/* oklch */ color: oklch(35.2% 0.137 272.0);
Tailwind
colors: {
  custom: {
    50: '#6d67a6',
    500: '#252f81',
    950: '#000000',
  },
}
SCSS
$custom: #252f81;
$custom-light: #6d67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252f81",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 233.478,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.13719,
    "h": 272
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#252F81
secondary
#B2A750
accent
#CE49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #252F81

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

Preview Lab → · Contrast checker → · Palette generator →

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