#252587#252587

#252587 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.158 H 274.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#252587
RGBrgb(37, 37, 135)
HSLhsl(240, 57%, 34%)
HSVhsv(240, 73%, 53%)
CMYKcmyk(72.6%, 72.6%, 0%, 47.1%)
CIE-LABlab(21.82, 33.80, -54.39)
CIE-LCHlch(21.82, 64.03, 301.86°)
OKLaboklab(34.02% 0.0113 -0.1572)
OKLCHoklch(34.02% 0.158 274.1)
XYZxyz(5.7962, 3.4652, 23.2804)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252587 #878725
analogous
#255687 #252587 #562587
triadic
#252587 #872525 #258725
tetradic
#252587 #872556 #878725 #258756
square
#252587 #872556 #878725 #258756
split-complementary
#252587 #875625 #568725
monochromatic
#0B0B27 #181857 #252587 #3232B7 #5656D1

Accessibility & contrast

On white

12.40
#252587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#252587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252587
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252587#FFFFFF#000000##FFFFFF
##2525871.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #252587;
/* rgb */ color: rgb(37, 37, 135);
/* oklch */ color: oklch(34.0% 0.158 274.1);
Tailwind
colors: {
  custom: {
    50: '#6f60ab',
    500: '#252587',
    950: '#000000',
  },
}
SCSS
$custom: #252587;
$custom-light: #6f60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252587",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34022,
    "c": 0.15766,
    "h": 274.1
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#252587
secondary
#B5B553
accent
#E048E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252587

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

Preview Lab → · Contrast checker → · Palette generator →

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