#251176#251176

#251176 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.156 H 279.9°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#251176
RGBrgb(37, 17, 118)
HSLhsl(252, 75%, 26%)
HSVhsv(252, 86%, 46%)
CMYKcmyk(68.6%, 85.6%, 0%, 53.7%)
CIE-LABlab(16.01, 39.23, -53.17)
CIE-LCHlch(16.01, 66.08, 306.43°)
OKLaboklab(29.37% 0.0268 -0.1535)
OKLCHoklch(29.37% 0.156 279.9)
XYZxyz(4.2324, 2.1019, 17.3187)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251176 #627611
analogous
#113076 #251176 #581176
triadic
#251176 #762511 #117625
tetradic
#251176 #761130 #627611 #117658
square
#251176 #761130 #627611 #117658
split-complementary
#251176 #765811 #307611
monochromatic
#08041B #140941 #251176 #3619AB #4822DF

Accessibility & contrast

On white

14.78
#251176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#251176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251176
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251176#FFFFFF#000000##FFFFFF
##2511761.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251176;
/* rgb */ color: rgb(37, 17, 118);
/* oklch */ color: oklch(29.4% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#6d539f',
    500: '#251176',
    950: '#000000',
  },
}
SCSS
$custom: #251176;
$custom-light: #6d539f;
$custom-dark: #000000;
JSON
{
  "hex": "#251176",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 251.881,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29374,
    "c": 0.15581,
    "h": 279.9
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#251176
secondary
#95AD36
accent
#F136CC
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #251176

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

Preview Lab → · Contrast checker → · Palette generator →

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