#251172#251172

#251172 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.151 H 280.8°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#251172
RGBrgb(37, 17, 114)
HSLhsl(252, 74%, 26%)
HSVhsv(252, 85%, 45%)
CMYKcmyk(67.5%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.53, 37.99, -51.38)
CIE-LCHlch(15.53, 63.90, 306.48°)
OKLaboklab(28.9% 0.0282 -0.1483)
OKLCHoklch(28.9% 0.151 280.8)
XYZxyz(3.9997, 2.0088, 16.0933)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251172 #5E7211
analogous
#112D72 #251172 #551172
triadic
#251172 #722511 #117225
tetradic
#251172 #72112D #5E7211 #117255
square
#251172 #72112D #5E7211 #117255
split-complementary
#251172 #725511 #2D7211
monochromatic
#09041B #14093D #251172 #3619A7 #4821DD

Accessibility & contrast

On white

14.98
#251172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251172
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251172#FFFFFF#000000##FFFFFF
##2511721.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251172;
/* rgb */ color: rgb(37, 17, 114);
/* oklch */ color: oklch(28.9% 0.151 280.8);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#251172',
    950: '#000000',
  },
}
SCSS
$custom: #251172;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#251172",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 252.371,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28902,
    "c": 0.15093,
    "h": 280.8
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#251172
secondary
#91A936
accent
#F137CA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251172

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

Preview Lab → · Contrast checker → · Palette generator →

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