#251072#251072

#251072 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.152 H 280.9°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#251072
RGBrgb(37, 16, 114)
HSLhsl(253, 75%, 25%)
HSVhsv(253, 86%, 45%)
CMYKcmyk(67.5%, 86%, 0%, 55.3%)
CIE-LABlab(15.37, 38.46, -51.64)
CIE-LCHlch(15.37, 64.39, 306.68°)
OKLaboklab(28.79% 0.0287 -0.149)
OKLCHoklch(28.79% 0.152 280.9)
XYZxyz(3.9845, 1.9785, 16.0882)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251072 #5D7210
analogous
#102C72 #251072 #561072
triadic
#251072 #722510 #107225
tetradic
#251072 #72102C #5D7210 #107256
square
#251072 #72102C #5D7210 #107256
split-complementary
#251072 #725610 #2C7210
monochromatic
#09041B #14083C #251072 #3618A8 #481FDD

Accessibility & contrast

On white

15.05
#251072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#251072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251072
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251072#FFFFFF#000000##FFFFFF
##2510721.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #251072;
/* rgb */ color: rgb(37, 16, 114);
/* oklch */ color: oklch(28.8% 0.152 280.9);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#251072',
    950: '#000000',
  },
}
SCSS
$custom: #251072;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#251072",
  "rgb": {
    "r": 37,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 252.857,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28792,
    "c": 0.15177,
    "h": 280.9
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#251072
secondary
#90A934
accent
#F236CA
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020E
muted
#7B787E

Preview Lab

Preview with #251072

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

Preview Lab → · Contrast checker → · Palette generator →

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