#251580#251580

#251580 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.165 H 277.5°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#251580
RGBrgb(37, 21, 128)
HSLhsl(249, 72%, 29%)
HSVhsv(249, 84%, 50%)
CMYKcmyk(71.1%, 83.6%, 0%, 49.8%)
CIE-LABlab(17.86, 40.46, -56.50)
CIE-LCHlch(17.86, 69.49, 305.60°)
OKLaboklab(31% 0.0216 -0.1632)
OKLCHoklch(31% 0.165 277.5)
XYZxyz(4.9261, 2.4877, 20.6385)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251580 #708015
analogous
#153B80 #251580 #5B1580
triadic
#251580 #802515 #158025
tetradic
#251580 #80153B #708015 #15805B
square
#251580 #80153B #708015 #15805B
split-complementary
#251580 #805B15 #3B8015
monochromatic
#08041A #160C4B #251580 #341EB5 #4C32DD

Accessibility & contrast

On white

14.02
#251580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251580
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251580#FFFFFF#000000##FFFFFF
##2515801.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251580;
/* rgb */ color: rgb(37, 21, 128);
/* oklch */ color: oklch(31.0% 0.165 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f56a6',
    500: '#251580',
    950: '#000000',
  },
}
SCSS
$custom: #251580;
$custom-light: #6f56a6;
$custom-dark: #000000;
JSON
{
  "hex": "#251580",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 248.972,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31002,
    "c": 0.16468,
    "h": 277.5
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#251580
secondary
#A3B53C
accent
#EF39D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251580

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

Preview Lab → · Contrast checker → · Palette generator →

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