#251162#251162

#251162 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.131 H 284.9°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#251162
RGBrgb(37, 17, 98)
HSLhsl(255, 70%, 23%)
HSVhsv(255, 83%, 38%)
CMYKcmyk(62.2%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.69, 32.95, -43.93)
CIE-LCHlch(13.69, 54.91, 306.87°)
OKLaboklab(27.07% 0.0336 -0.1266)
OKLCHoklch(27.07% 0.131 284.9)
XYZxyz(3.1673, 1.6759, 11.7095)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251162 #4E6211
analogous
#112562 #251162 #4E1162
triadic
#251162 #622511 #116225
tetradic
#251162 #621125 #4E6211 #11624E
square
#251162 #621125 #4E6211 #11624E
split-complementary
#251162 #624E11 #256211
monochromatic
#0A051A #11082E #251162 #391A96 #4C23CA

Accessibility & contrast

On white

15.73
#251162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251162
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251162#FFFFFF#000000##FFFFFF
##2511621.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#032939
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #251162;
/* rgb */ color: rgb(37, 17, 98);
/* oklch */ color: oklch(27.1% 0.131 284.9);
Tailwind
colors: {
  custom: {
    50: '#685290',
    500: '#251162',
    950: '#000000',
  },
}
SCSS
$custom: #251162;
$custom-light: #685290;
$custom-dark: #000000;
JSON
{
  "hex": "#251162",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 254.815,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27071,
    "c": 0.13095,
    "h": 284.9
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#251162
secondary
#819A34
accent
#ED3BC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #251162

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

Preview Lab → · Contrast checker → · Palette generator →

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