#251164#251164

#251164 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.134 H 284.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#251164
RGBrgb(37, 17, 100)
HSLhsl(254, 71%, 23%)
HSVhsv(254, 83%, 39%)
CMYKcmyk(63%, 83%, 0%, 60.8%)
CIE-LABlab(13.91, 33.58, -44.89)
CIE-LCHlch(13.91, 56.06, 306.80°)
OKLaboklab(27.29% 0.0329 -0.1294)
OKLCHoklch(27.29% 0.134 284.3)
XYZxyz(3.2629, 1.7141, 12.2130)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251164 #506411
analogous
#112664 #251164 #4E1164
triadic
#251164 #642511 #116425
tetradic
#251164 #641126 #506411 #11644E
square
#251164 #641126 #506411 #11644E
split-complementary
#251164 #644E11 #266411
monochromatic
#0A041A #120830 #251164 #381A98 #4C23CD

Accessibility & contrast

On white

15.64
#251164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#251164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251164
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251164#FFFFFF#000000##FFFFFF
##2511641.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002163
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #251164;
/* rgb */ color: rgb(37, 17, 100);
/* oklch */ color: oklch(27.3% 0.134 284.3);
Tailwind
colors: {
  custom: {
    50: '#695291',
    500: '#251164',
    950: '#000000',
  },
}
SCSS
$custom: #251164;
$custom-light: #695291;
$custom-dark: #000000;
JSON
{
  "hex": "#251164",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 254.458,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27294,
    "c": 0.1335,
    "h": 284.3
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#251164
secondary
#839C35
accent
#EE3AC2
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #251164

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

Preview Lab → · Contrast checker → · Palette generator →

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