#251887#251887

#251887 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.171 H 276.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#251887
RGBrgb(37, 24, 135)
HSLhsl(247, 70%, 31%)
HSVhsv(247, 82%, 53%)
CMYKcmyk(72.6%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.20, 41.20, -58.70)
CIE-LCHlch(19.20, 71.72, 305.06°)
OKLaboklab(32.18% 0.0182 -0.1697)
OKLCHoklch(32.18% 0.171 276.1)
XYZxyz(5.4613, 2.7953, 23.1687)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251887 #7A8718
analogous
#184287 #251887 #5C1887
triadic
#251887 #872518 #188725
tetradic
#251887 #871842 #7A8718 #18875C
square
#251887 #871842 #7A8718 #18875C
split-complementary
#251887 #875C18 #428718
monochromatic
#09061F #170F53 #251887 #3321BB #503DDC

Accessibility & contrast

On white

13.47
#251887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#251887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251887
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251887#FFFFFF#000000##FFFFFF
##2518871.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251887;
/* rgb */ color: rgb(37, 24, 135);
/* oklch */ color: oklch(32.2% 0.171 276.1);
Tailwind
colors: {
  custom: {
    50: '#7058ab',
    500: '#251887',
    950: '#000000',
  },
}
SCSS
$custom: #251887;
$custom-light: #7058ab;
$custom-dark: #000000;
JSON
{
  "hex": "#251887",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 247.027,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32176,
    "c": 0.17066,
    "h": 276.1
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#251887
secondary
#ACBB40
accent
#ED3BD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251887

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

Preview Lab → · Contrast checker → · Palette generator →

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