#251578#251578

#251578 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.155 H 279.0°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#251578
RGBrgb(37, 21, 120)
HSLhsl(250, 70%, 28%)
HSVhsv(250, 83%, 47%)
CMYKcmyk(69.2%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.92, 37.92, -52.96)
CIE-LCHlch(16.92, 65.13, 305.60°)
OKLaboklab(30.07% 0.0241 -0.1529)
OKLCHoklch(30.07% 0.155 279)
XYZxyz(4.4202, 2.2853, 17.9738)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251578 #687815
analogous
#153678 #251578 #561578
triadic
#251578 #782515 #157825
tetradic
#251578 #781536 #687815 #157856
square
#251578 #781536 #687815 #157856
split-complementary
#251578 #785615 #367815
monochromatic
#08051A #150C44 #251578 #351EAC #492DDA

Accessibility & contrast

On white

14.41
#251578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#251578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251578
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251578#FFFFFF#000000##FFFFFF
##2515781.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251578;
/* rgb */ color: rgb(37, 21, 120);
/* oklch */ color: oklch(30.1% 0.155 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d56a0',
    500: '#251578',
    950: '#000000',
  },
}
SCSS
$custom: #251578;
$custom-light: #6d56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#251578",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 249.697,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3007,
    "c": 0.15483,
    "h": 279
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#251578
secondary
#9BAE3B
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251578

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

Preview Lab → · Contrast checker → · Palette generator →

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