#252487#252487

#252487 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.159 H 274.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#252487
RGBrgb(37, 36, 135)
HSLhsl(241, 58%, 34%)
HSVhsv(241, 73%, 53%)
CMYKcmyk(72.6%, 73.3%, 0%, 47.1%)
CIE-LABlab(21.59, 34.42, -54.76)
CIE-LCHlch(21.59, 64.68, 302.15°)
OKLaboklab(33.86% 0.0119 -0.1583)
OKLCHoklch(33.86% 0.159 274.3)
XYZxyz(5.7655, 3.4038, 23.2701)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252487 #868724
analogous
#245487 #252487 #562487
triadic
#252487 #872524 #248725
tetradic
#252487 #872454 #868724 #248756
square
#252487 #872454 #868724 #248756
split-complementary
#252487 #875624 #548724
monochromatic
#0B0A26 #181757 #252487 #3231B7 #5554D1

Accessibility & contrast

On white

12.49
#252487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#252487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252487
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252487#FFFFFF#000000##FFFFFF
##2524871.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #252487;
/* rgb */ color: rgb(37, 36, 135);
/* oklch */ color: oklch(33.9% 0.159 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f60ab',
    500: '#252487',
    950: '#000000',
  },
}
SCSS
$custom: #252487;
$custom-light: #6f60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#252487",
  "rgb": {
    "r": 37,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 240.606,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33861,
    "c": 0.15877,
    "h": 274.3
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#252487
secondary
#B4B551
accent
#E147E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252487

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

Preview Lab → · Contrast checker → · Palette generator →

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