#251478#251478

#251478 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.156 H 279.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#251478
RGBrgb(37, 20, 120)
HSLhsl(250, 71%, 27%)
HSVhsv(250, 83%, 47%)
CMYKcmyk(69.2%, 83.3%, 0%, 52.9%)
CIE-LABlab(16.74, 38.42, -53.24)
CIE-LCHlch(16.74, 65.66, 305.81°)
OKLaboklab(29.95% 0.0246 -0.1538)
OKLCHoklch(29.95% 0.156 279.1)
XYZxyz(4.4022, 2.2493, 17.9678)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251478 #677814
analogous
#143578 #251478 #571478
triadic
#251478 #782514 #147825
tetradic
#251478 #781435 #677814 #147857
square
#251478 #781435 #677814 #147857
split-complementary
#251478 #785714 #357814
monochromatic
#08041A #150B44 #251478 #351DAC #492BDC

Accessibility & contrast

On white

14.48
#251478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#251478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251478
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251478#FFFFFF#000000##FFFFFF
##2514781.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251478;
/* rgb */ color: rgb(37, 20, 120);
/* oklch */ color: oklch(29.9% 0.156 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d55a0',
    500: '#251478',
    950: '#000000',
  },
}
SCSS
$custom: #251478;
$custom-light: #6d55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#251478",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 250.2,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29949,
    "c": 0.15572,
    "h": 279.1
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#251478
secondary
#9AAE3A
accent
#EE3ACF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251478

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

Preview Lab → · Contrast checker → · Palette generator →

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