#251479#251479

#251479 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.157 H 278.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#251479
RGBrgb(37, 20, 121)
HSLhsl(250, 72%, 28%)
HSVhsv(250, 83%, 47%)
CMYKcmyk(69.4%, 83.5%, 0%, 52.5%)
CIE-LABlab(16.86, 38.74, -53.69)
CIE-LCHlch(16.86, 66.21, 305.81°)
OKLaboklab(30.07% 0.0243 -0.1551)
OKLCHoklch(30.07% 0.157 278.9)
XYZxyz(4.4632, 2.2737, 18.2891)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251479 #687914
analogous
#143579 #251479 #571479
triadic
#251479 #792514 #147925
tetradic
#251479 #791435 #687914 #147957
square
#251479 #791435 #687914 #147957
split-complementary
#251479 #795714 #357914
monochromatic
#08041A #150B44 #251479 #351DAE #492BDC

Accessibility & contrast

On white

14.43
#251479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251479
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251479#FFFFFF#000000##FFFFFF
##2514791.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251479;
/* rgb */ color: rgb(37, 20, 121);
/* oklch */ color: oklch(30.1% 0.157 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d55a1',
    500: '#251479',
    950: '#000000',
  },
}
SCSS
$custom: #251479;
$custom-light: #6d55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#251479",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 250.099,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30066,
    "c": 0.15695,
    "h": 278.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#251479
secondary
#9BAF3A
accent
#EE39D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251479

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

Preview Lab → · Contrast checker → · Palette generator →

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