#251156#251156

#251156 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.115 H 288.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#251156
RGBrgb(37, 17, 86)
HSLhsl(257, 67%, 20%)
HSVhsv(257, 80%, 34%)
CMYKcmyk(57%, 80.2%, 0%, 66.3%)
CIE-LABlab(12.39, 29.10, -38.00)
CIE-LCHlch(12.39, 47.86, 307.45°)
OKLaboklab(25.77% 0.0372 -0.1092)
OKLCHoklch(25.77% 0.115 288.8)
XYZxyz(2.6426, 1.4660, 8.9460)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251156 #425611
analogous
#112056 #251156 #471156
triadic
#251156 #562511 #115625
tetradic
#251156 #561120 #425611 #115647
square
#251156 #561120 #425611 #115647
split-complementary
#251156 #564711 #205611
monochromatic
#0B051A #0F0723 #251156 #3B1B89 #5125BC

Accessibility & contrast

On white

16.24
#251156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#251156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251156
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251156#FFFFFF#000000##FFFFFF
##2511561.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#122432
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #251156;
/* rgb */ color: rgb(37, 17, 86);
/* oklch */ color: oklch(25.8% 0.115 288.8);
Tailwind
colors: {
  custom: {
    50: '#665186',
    500: '#251156',
    950: '#000000',
  },
}
SCSS
$custom: #251156;
$custom-light: #665186;
$custom-dark: #000000;
JSON
{
  "hex": "#251156",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 257.391,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25771,
    "c": 0.11539,
    "h": 288.8
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#251156
secondary
#758F34
accent
#EA3EB8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #251156

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

Preview Lab → · Contrast checker → · Palette generator →

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