#252987#252987

#252987 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.153 H 273.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#252987
RGBrgb(37, 41, 135)
HSLhsl(238, 57%, 34%)
HSVhsv(238, 73%, 53%)
CMYKcmyk(72.6%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.75, 31.25, -52.86)
CIE-LCHlch(22.75, 61.41, 300.60°)
OKLaboklab(34.69% 0.0087 -0.1528)
OKLCHoklch(34.69% 0.153 273.3)
XYZxyz(5.9276, 3.7279, 23.3241)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252987 #878325
analogous
#255A87 #252987 #522587
triadic
#252987 #872529 #298725
tetradic
#252987 #87255A #878325 #258752
square
#252987 #87255A #878325 #258752
split-complementary
#252987 #875225 #5A8725
monochromatic
#0B0C27 #181A57 #252987 #3238B7 #565BD1

Accessibility & contrast

On white

12.03
#252987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252987
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252987#FFFFFF#000000##FFFFFF
##2529871.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252987;
/* rgb */ color: rgb(37, 41, 135);
/* oklch */ color: oklch(34.7% 0.153 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f63ab',
    500: '#252987',
    950: '#000000',
  },
}
SCSS
$custom: #252987;
$custom-light: #6f63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252987",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 237.551,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34694,
    "c": 0.15302,
    "h": 273.3
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#252987
secondary
#B5B153
accent
#DA48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252987

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

Preview Lab → · Contrast checker → · Palette generator →

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