#251988#251988

#251988 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 275.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#251988
RGBrgb(37, 25, 136)
HSLhsl(246, 69%, 32%)
HSVhsv(246, 82%, 53%)
CMYKcmyk(72.8%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.50, 41.01, -58.85)
CIE-LCHlch(19.50, 71.73, 304.87°)
OKLaboklab(32.41% 0.0175 -0.1701)
OKLCHoklch(32.41% 0.171 275.9)
XYZxyz(5.5531, 2.8656, 23.5483)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251988 #7C8819
analogous
#194588 #251988 #5D1988
triadic
#251988 #882519 #198825
tetradic
#251988 #881945 #7C8819 #19885D
square
#251988 #881945 #7C8819 #19885D
split-complementary
#251988 #885D19 #458819
monochromatic
#090621 #170F54 #251988 #3323BC #5040DC

Accessibility & contrast

On white

13.35
#251988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251988
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251988#FFFFFF#000000##FFFFFF
##2519881.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #251988;
/* rgb */ color: rgb(37, 25, 136);
/* oklch */ color: oklch(32.4% 0.171 275.9);
Tailwind
colors: {
  custom: {
    50: '#7059ac',
    500: '#251988',
    950: '#000000',
  },
}
SCSS
$custom: #251988;
$custom-light: #7059ac;
$custom-dark: #000000;
JSON
{
  "hex": "#251988",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 246.486,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32414,
    "c": 0.17102,
    "h": 275.9
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#251988
secondary
#AEBB41
accent
#EC3CD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #251988

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

Preview Lab → · Contrast checker → · Palette generator →

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