#251168#251168

#251168 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.139 H 283.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#251168
RGBrgb(37, 17, 104)
HSLhsl(254, 72%, 24%)
HSVhsv(254, 84%, 41%)
CMYKcmyk(64.4%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.36, 34.85, -46.78)
CIE-LCHlch(14.36, 58.33, 306.69°)
OKLaboklab(27.75% 0.0316 -0.1349)
OKLCHoklch(27.75% 0.139 283.2)
XYZxyz(3.4613, 1.7935, 13.2578)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251168 #546811
analogous
#112868 #251168 #501168
triadic
#251168 #682511 #116825
tetradic
#251168 #681128 #546811 #116850
square
#251168 #681128 #546811 #116850
split-complementary
#251168 #685011 #286811
monochromatic
#09041A #120833 #251168 #381A9D #4A22D1

Accessibility & contrast

On white

15.45
#251168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#251168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251168
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251168#FFFFFF#000000##FFFFFF
##2511681.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002166
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #251168;
/* rgb */ color: rgb(37, 17, 104);
/* oklch */ color: oklch(27.7% 0.139 283.2);
Tailwind
colors: {
  custom: {
    50: '#6a5294',
    500: '#251168',
    950: '#000000',
  },
}
SCSS
$custom: #251168;
$custom-light: #6a5294;
$custom-dark: #000000;
JSON
{
  "hex": "#251168",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 253.793,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27746,
    "c": 0.13854,
    "h": 283.2
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#251168
secondary
#87A035
accent
#EF39C5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #251168

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

Preview Lab → · Contrast checker → · Palette generator →

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