#251987#251987

#251987 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.170 H 276.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#251987
RGBrgb(37, 25, 135)
HSLhsl(247, 69%, 31%)
HSVhsv(247, 81%, 53%)
CMYKcmyk(72.6%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.38, 40.69, -58.41)
CIE-LCHlch(19.38, 71.19, 304.86°)
OKLaboklab(32.3% 0.0178 -0.1689)
OKLCHoklch(32.3% 0.17 276)
XYZxyz(5.4823, 2.8373, 23.1757)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251987 #7B8719
analogous
#194487 #251987 #5C1987
triadic
#251987 #872519 #198725
tetradic
#251987 #871944 #7B8719 #19875C
square
#251987 #871944 #7B8719 #19875C
split-complementary
#251987 #875C19 #448719
monochromatic
#090620 #170F53 #251987 #3323BB #503FDB

Accessibility & contrast

On white

13.40
#251987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#251987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251987
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251987#FFFFFF#000000##FFFFFF
##2519871.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #251987;
/* rgb */ color: rgb(37, 25, 135);
/* oklch */ color: oklch(32.3% 0.170 276.0);
Tailwind
colors: {
  custom: {
    50: '#7059ab',
    500: '#251987',
    950: '#000000',
  },
}
SCSS
$custom: #251987;
$custom-light: #7059ab;
$custom-dark: #000000;
JSON
{
  "hex": "#251987",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 246.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32298,
    "c": 0.16979,
    "h": 276
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#251987
secondary
#ADBA41
accent
#EC3CD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #251987

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

Preview Lab → · Contrast checker → · Palette generator →

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