#252887#252887

#252887 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.154 H 273.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#252887
RGBrgb(37, 40, 135)
HSLhsl(238, 57%, 34%)
HSVhsv(238, 73%, 53%)
CMYKcmyk(72.6%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.51, 31.90, -53.25)
CIE-LCHlch(22.51, 62.07, 300.92°)
OKLaboklab(34.52% 0.0094 -0.1539)
OKLCHoklch(34.52% 0.154 273.5)
XYZxyz(5.8935, 3.6596, 23.3128)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252887 #878425
analogous
#255987 #252887 #532587
triadic
#252887 #872528 #288725
tetradic
#252887 #872559 #878425 #258753
square
#252887 #872559 #878425 #258753
split-complementary
#252887 #875325 #598725
monochromatic
#0B0C27 #181A57 #252887 #3236B7 #565AD1

Accessibility & contrast

On white

12.12
#252887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252887
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252887#FFFFFF#000000##FFFFFF
##2528871.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252887;
/* rgb */ color: rgb(37, 40, 135);
/* oklch */ color: oklch(34.5% 0.154 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f62ab',
    500: '#252887',
    950: '#000000',
  },
}
SCSS
$custom: #252887;
$custom-light: #6f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252887",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 238.163,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34522,
    "c": 0.15419,
    "h": 273.5
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#252887
secondary
#B5B253
accent
#DC48E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252887

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

Preview Lab → · Contrast checker → · Palette generator →

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