#252787#252787

#252787 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.155 H 273.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#252787
RGBrgb(37, 39, 135)
HSLhsl(239, 57%, 34%)
HSVhsv(239, 73%, 53%)
CMYKcmyk(72.6%, 71.1%, 0%, 47.1%)
CIE-LABlab(22.28, 32.54, -53.63)
CIE-LCHlch(22.28, 62.73, 301.24°)
OKLaboklab(34.35% 0.01 -0.155)
OKLCHoklch(34.35% 0.155 273.7)
XYZxyz(5.8602, 3.5931, 23.3017)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252787 #878525
analogous
#255887 #252787 #542587
triadic
#252787 #872527 #278725
tetradic
#252787 #872558 #878525 #258754
square
#252787 #872558 #878525 #258754
split-complementary
#252787 #875425 #588725
monochromatic
#0B0B27 #181957 #252787 #3235B7 #5658D1

Accessibility & contrast

On white

12.22
#252787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252787
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252787#FFFFFF#000000##FFFFFF
##2527871.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252787;
/* rgb */ color: rgb(37, 39, 135);
/* oklch */ color: oklch(34.4% 0.155 273.7);
Tailwind
colors: {
  custom: {
    50: '#6f62ab',
    500: '#252787',
    950: '#000000',
  },
}
SCSS
$custom: #252787;
$custom-light: #6f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252787",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 238.776,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34353,
    "c": 0.15536,
    "h": 273.7
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#252787
secondary
#B5B353
accent
#DD48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252787

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

Preview Lab → · Contrast checker → · Palette generator →

#252787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva