#251152#251152

#251152 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.110 H 290.4°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#251152
RGBrgb(37, 17, 82)
HSLhsl(258, 66%, 19%)
HSVhsv(258, 79%, 32%)
CMYKcmyk(54.9%, 79.3%, 0%, 67.8%)
CIE-LABlab(11.98, 27.82, -35.95)
CIE-LCHlch(11.98, 45.45, 307.74°)
OKLaboklab(25.36% 0.0383 -0.1032)
OKLCHoklch(25.36% 0.11 290.4)
XYZxyz(2.4860, 1.4033, 8.1209)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251152 #3E5211
analogous
#111D52 #251152 #461152
triadic
#251152 #522511 #115225
tetradic
#251152 #52111D #3E5211 #115246
square
#251152 #52111D #3E5211 #115246
split-complementary
#251152 #524611 #1D5211
monochromatic
#0B0519 #0E061F #251152 #3C1C85 #5326B7

Accessibility & contrast

On white

16.40
#251152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#251152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251152
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251152#FFFFFF#000000##FFFFFF
##2511521.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#152230
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #251152;
/* rgb */ color: rgb(37, 17, 82);
/* oklch */ color: oklch(25.4% 0.110 290.4);
Tailwind
colors: {
  custom: {
    50: '#655183',
    500: '#251152',
    950: '#000000',
  },
}
SCSS
$custom: #251152;
$custom-light: #655183;
$custom-dark: #000000;
JSON
{
  "hex": "#251152",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 258.462,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25356,
    "c": 0.11009,
    "h": 290.4
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#251152
secondary
#708B34
accent
#E93FB4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #251152

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

Preview Lab → · Contrast checker → · Palette generator →

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