#231157#231157

#231157 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.117 H 286.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#231157
RGBrgb(35, 17, 87)
HSLhsl(255, 67%, 20%)
HSVhsv(255, 80%, 34%)
CMYKcmyk(59.8%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.26, 29.09, -38.90)
CIE-LCHlch(12.26, 48.57, 306.80°)
OKLaboklab(25.66% 0.0336 -0.1119)
OKLCHoklch(25.66% 0.117 286.7)
XYZxyz(2.6134, 1.4462, 9.1564)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231157 #455711
analogous
#112257 #231157 #461157
triadic
#231157 #572311 #115723
tetradic
#231157 #571122 #455711 #115746
square
#231157 #571122 #455711 #115746
split-complementary
#231157 #574611 #225711
monochromatic
#0A051A #0E0724 #231157 #381B8A #4C25BD

Accessibility & contrast

On white

16.29
#231157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231157
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231157#FFFFFF#000000##FFFFFF
##2311571.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#0C2433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231157;
/* rgb */ color: rgb(35, 17, 87);
/* oklch */ color: oklch(25.7% 0.117 286.7);
Tailwind
colors: {
  custom: {
    50: '#655187',
    500: '#231157',
    950: '#000000',
  },
}
SCSS
$custom: #231157;
$custom-light: #655187;
$custom-dark: #000000;
JSON
{
  "hex": "#231157",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 255.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25658,
    "c": 0.11686,
    "h": 286.7
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#231157
secondary
#789034
accent
#EA3EBE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231157

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

Preview Lab → · Contrast checker → · Palette generator →

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