#251171#251171

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

Color values

HEX#251171
RGBrgb(37, 17, 113)
HSLhsl(253, 74%, 25%)
HSVhsv(253, 85%, 44%)
CMYKcmyk(67.3%, 85%, 0%, 55.7%)
CIE-LABlab(15.41, 37.68, -50.92)
CIE-LCHlch(15.41, 63.35, 306.50°)
OKLaboklab(28.79% 0.0285 -0.147)
OKLCHoklch(28.79% 0.15 281)
XYZxyz(3.9431, 1.9862, 15.7952)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251171 #5D7111
analogous
#112D71 #251171 #551171
triadic
#251171 #712511 #117125
tetradic
#251171 #71112D #5D7111 #117155
square
#251171 #71112D #5D7111 #117155
split-complementary
#251171 #715511 #2D7111
monochromatic
#09041B #14093C #251171 #3619A6 #4821DB

Accessibility & contrast

On white

15.03
#251171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251171
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251171#FFFFFF#000000##FFFFFF
##2511711.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #251171;
/* rgb */ color: rgb(37, 17, 113);
/* oklch */ color: oklch(28.8% 0.150 281.0);
Tailwind
colors: {
  custom: {
    50: '#6c539b',
    500: '#251171',
    950: '#000000',
  },
}
SCSS
$custom: #251171;
$custom-light: #6c539b;
$custom-dark: #000000;
JSON
{
  "hex": "#251171",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 252.5,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28785,
    "c": 0.14971,
    "h": 281
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#251171
secondary
#90A836
accent
#F137CA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251171

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

Preview Lab → · Contrast checker → · Palette generator →

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