#251589#251589

#251589 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.176 H 276.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#251589
RGBrgb(37, 21, 137)
HSLhsl(248, 73%, 31%)
HSVhsv(248, 85%, 54%)
CMYKcmyk(73%, 84.7%, 0%, 46.3%)
CIE-LABlab(18.95, 43.27, -60.38)
CIE-LCHlch(18.95, 74.28, 305.63°)
OKLaboklab(32.07% 0.0188 -0.1745)
OKLCHoklch(32.07% 0.176 276.2)
XYZxyz(5.5450, 2.7353, 23.8978)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251589 #798915
analogous
#153F89 #251589 #5F1589
triadic
#251589 #892515 #158925
tetradic
#251589 #89153F #798915 #15895F
square
#251589 #89153F #798915 #15895F
split-complementary
#251589 #895F15 #3F8915
monochromatic
#08051F #170D54 #251589 #331DBE #4F38E0

Accessibility & contrast

On white

13.57
#251589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#251589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251589
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251589#FFFFFF#000000##FFFFFF
##2515891.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251589;
/* rgb */ color: rgb(37, 21, 137);
/* oklch */ color: oklch(32.1% 0.176 276.2);
Tailwind
colors: {
  custom: {
    50: '#7157ad',
    500: '#251589',
    950: '#000000',
  },
}
SCSS
$custom: #251589;
$custom-light: #7157ad;
$custom-dark: #000000;
JSON
{
  "hex": "#251589",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 248.276,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3207,
    "c": 0.17552,
    "h": 276.2
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#251589
secondary
#ABBD3D
accent
#F038D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251589

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

Preview Lab → · Contrast checker → · Palette generator →

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