#251157#251157

#251157 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.117 H 288.5°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#251157
RGBrgb(37, 17, 87)
HSLhsl(257, 67%, 20%)
HSVhsv(257, 80%, 34%)
CMYKcmyk(57.5%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.49, 29.42, -38.51)
CIE-LCHlch(12.49, 48.46, 307.39°)
OKLaboklab(25.88% 0.0369 -0.1107)
OKLCHoklch(25.88% 0.117 288.5)
XYZxyz(2.6832, 1.4822, 9.1597)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251157 #435711
analogous
#112057 #251157 #481157
triadic
#251157 #572511 #115725
tetradic
#251157 #571120 #435711 #115748
square
#251157 #571120 #435711 #115748
split-complementary
#251157 #574811 #205711
monochromatic
#0B051A #0F0724 #251157 #3B1B8A #5125BD

Accessibility & contrast

On white

16.20
#251157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#251157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251157
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251157#FFFFFF#000000##FFFFFF
##2511571.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#112433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #251157;
/* rgb */ color: rgb(37, 17, 87);
/* oklch */ color: oklch(25.9% 0.117 288.5);
Tailwind
colors: {
  custom: {
    50: '#665187',
    500: '#251157',
    950: '#000000',
  },
}
SCSS
$custom: #251157;
$custom-light: #665187;
$custom-dark: #000000;
JSON
{
  "hex": "#251157",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 257.143,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25877,
    "c": 0.11671,
    "h": 288.5
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#251157
secondary
#769034
accent
#EA3EB9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #251157

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

Preview Lab → · Contrast checker → · Palette generator →

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