#251582#251582

#251582 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.167 H 277.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#251582
RGBrgb(37, 21, 130)
HSLhsl(249, 72%, 30%)
HSVhsv(249, 84%, 51%)
CMYKcmyk(71.5%, 83.8%, 0%, 49%)
CIE-LABlab(18.10, 41.09, -57.37)
CIE-LCHlch(18.10, 70.57, 305.61°)
OKLaboklab(31.24% 0.021 -0.1658)
OKLCHoklch(31.24% 0.167 277.2)
XYZxyz(5.0591, 2.5409, 21.3386)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251582 #728215
analogous
#153C82 #251582 #5B1582
triadic
#251582 #822515 #158225
tetradic
#251582 #82153C #728215 #15825B
square
#251582 #82153C #728215 #15825B
split-complementary
#251582 #825B15 #3C8215
monochromatic
#07041A #160C4D #251582 #341EB7 #4C33DE

Accessibility & contrast

On white

13.92
#251582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#251582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251582
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251582#FFFFFF#000000##FFFFFF
##2515821.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251582;
/* rgb */ color: rgb(37, 21, 130);
/* oklch */ color: oklch(31.2% 0.167 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f56a8',
    500: '#251582',
    950: '#000000',
  },
}
SCSS
$custom: #251582;
$custom-light: #6f56a8;
$custom-dark: #000000;
JSON
{
  "hex": "#251582",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 248.807,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31238,
    "c": 0.16711,
    "h": 277.2
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#251582
secondary
#A5B73C
accent
#EF39D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251582

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

Preview Lab → · Contrast checker → · Palette generator →

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