#251581#251581

#251581 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.166 H 277.4°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#251581
RGBrgb(37, 21, 129)
HSLhsl(249, 72%, 29%)
HSVhsv(249, 84%, 51%)
CMYKcmyk(71.3%, 83.7%, 0%, 49.4%)
CIE-LABlab(17.98, 40.77, -56.94)
CIE-LCHlch(17.98, 70.03, 305.61°)
OKLaboklab(31.12% 0.0213 -0.1645)
OKLCHoklch(31.12% 0.166 277.4)
XYZxyz(4.9923, 2.5142, 20.9868)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251581 #718115
analogous
#153B81 #251581 #5B1581
triadic
#251581 #812515 #158125
tetradic
#251581 #81153B #718115 #15815B
square
#251581 #81153B #718115 #15815B
split-complementary
#251581 #815B15 #3B8115
monochromatic
#08041A #160C4C #251581 #341EB6 #4C33DE

Accessibility & contrast

On white

13.97
#251581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#251581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251581
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251581#FFFFFF#000000##FFFFFF
##2515811.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251581;
/* rgb */ color: rgb(37, 21, 129);
/* oklch */ color: oklch(31.1% 0.166 277.4);
Tailwind
colors: {
  custom: {
    50: '#6f56a7',
    500: '#251581',
    950: '#000000',
  },
}
SCSS
$custom: #251581;
$custom-light: #6f56a7;
$custom-dark: #000000;
JSON
{
  "hex": "#251581",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 248.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.1659,
    "h": 277.4
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #251581

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

Preview Lab → · Contrast checker → · Palette generator →

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