#251588#251588

#251588 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.174 H 276.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#251588
RGBrgb(37, 21, 136)
HSLhsl(248, 73%, 31%)
HSVhsv(248, 85%, 53%)
CMYKcmyk(72.8%, 84.6%, 0%, 46.7%)
CIE-LABlab(18.83, 42.96, -59.96)
CIE-LCHlch(18.83, 73.76, 305.62°)
OKLaboklab(31.95% 0.0191 -0.1733)
OKLCHoklch(31.95% 0.174 276.3)
XYZxyz(5.4736, 2.7067, 23.5218)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251588 #788815
analogous
#153E88 #251588 #5E1588
triadic
#251588 #882515 #158825
tetradic
#251588 #88153E #788815 #15885E
square
#251588 #88153E #788815 #15885E
split-complementary
#251588 #885E15 #3E8815
monochromatic
#08051E #170D53 #251588 #331DBD #4F37E0

Accessibility & contrast

On white

13.62
#251588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#251588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251588
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251588#FFFFFF#000000##FFFFFF
##2515881.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251588;
/* rgb */ color: rgb(37, 21, 136);
/* oklch */ color: oklch(32.0% 0.174 276.3);
Tailwind
colors: {
  custom: {
    50: '#7157ac',
    500: '#251588',
    950: '#000000',
  },
}
SCSS
$custom: #251588;
$custom-light: #7157ac;
$custom-dark: #000000;
JSON
{
  "hex": "#251588",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 248.348,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31951,
    "c": 0.17432,
    "h": 276.3
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#251588
secondary
#AABC3D
accent
#F038D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251588

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

Preview Lab → · Contrast checker → · Palette generator →

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