#251474#251474

#251474 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.151 H 279.9°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#251474
RGBrgb(37, 20, 116)
HSLhsl(251, 71%, 27%)
HSVhsv(251, 83%, 45%)
CMYKcmyk(68.1%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.28, 37.15, -51.44)
CIE-LCHlch(16.28, 63.45, 305.83°)
OKLaboklab(29.49% 0.0259 -0.1485)
OKLCHoklch(29.49% 0.151 279.9)
XYZxyz(4.1645, 2.1542, 16.7160)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251474 #637414
analogous
#143374 #251474 #551474
triadic
#251474 #742514 #147425
tetradic
#251474 #741433 #637414 #147455
square
#251474 #741433 #637414 #147455
split-complementary
#251474 #745514 #337414
monochromatic
#08051A #140B40 #251474 #361DA8 #4828DA

Accessibility & contrast

On white

14.68
#251474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#251474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251474
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251474#FFFFFF#000000##FFFFFF
##2514741.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251474;
/* rgb */ color: rgb(37, 20, 116);
/* oklch */ color: oklch(29.5% 0.151 279.9);
Tailwind
colors: {
  custom: {
    50: '#6c559d',
    500: '#251474',
    950: '#000000',
  },
}
SCSS
$custom: #251474;
$custom-light: #6c559d;
$custom-dark: #000000;
JSON
{
  "hex": "#251474",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 250.625,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29486,
    "c": 0.15075,
    "h": 279.9
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#251474
secondary
#96AA3A
accent
#ED3ACE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251474

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

Preview Lab → · Contrast checker → · Palette generator →

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