#251475#251475

#251475 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.152 H 279.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#251475
RGBrgb(37, 20, 117)
HSLhsl(251, 71%, 27%)
HSVhsv(251, 83%, 46%)
CMYKcmyk(68.4%, 82.9%, 0%, 54.1%)
CIE-LABlab(16.39, 37.47, -51.90)
CIE-LCHlch(16.39, 64.01, 305.83°)
OKLaboklab(29.6% 0.0256 -0.1498)
OKLCHoklch(29.6% 0.152 279.7)
XYZxyz(4.2230, 2.1776, 17.0240)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251475 #647514
analogous
#143475 #251475 #561475
triadic
#251475 #752514 #147525
tetradic
#251475 #751434 #647514 #147556
square
#251475 #751434 #647514 #147556
split-complementary
#251475 #755614 #347514
monochromatic
#08041A #140B41 #251475 #361DA9 #4829DA

Accessibility & contrast

On white

14.63
#251475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#251475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251475
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251475#FFFFFF#000000##FFFFFF
##2514751.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251475;
/* rgb */ color: rgb(37, 20, 117);
/* oklch */ color: oklch(29.6% 0.152 279.7);
Tailwind
colors: {
  custom: {
    50: '#6c559e',
    500: '#251475',
    950: '#000000',
  },
}
SCSS
$custom: #251475;
$custom-light: #6c559e;
$custom-dark: #000000;
JSON
{
  "hex": "#251475",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 250.515,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29602,
    "c": 0.152,
    "h": 279.7
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#251475
secondary
#97AB3A
accent
#EE3ACE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251475

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

Preview Lab → · Contrast checker → · Palette generator →

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