#231162#231162

#231162 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.131 H 283.3°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#231162
RGBrgb(35, 17, 98)
HSLhsl(253, 70%, 23%)
HSVhsv(253, 83%, 38%)
CMYKcmyk(64.3%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.47, 32.68, -44.29)
CIE-LCHlch(13.47, 55.04, 306.42°)
OKLaboklab(26.87% 0.0302 -0.1277)
OKLCHoklch(26.87% 0.131 283.3)
XYZxyz(3.0975, 1.6399, 11.7062)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231162 #506211
analogous
#112862 #231162 #4B1162
triadic
#231162 #622311 #116223
tetradic
#231162 #621128 #506211 #11624B
square
#231162 #621128 #506211 #11624B
split-complementary
#231162 #624B11 #286211
monochromatic
#09051A #10082E #231162 #361A96 #4823CA

Accessibility & contrast

On white

15.81
#231162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#231162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231162
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231162#FFFFFF#000000##FFFFFF
##2311621.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231162;
/* rgb */ color: rgb(35, 17, 98);
/* oklch */ color: oklch(26.9% 0.131 283.3);
Tailwind
colors: {
  custom: {
    50: '#675290',
    500: '#231162',
    950: '#000000',
  },
}
SCSS
$custom: #231162;
$custom-light: #675290;
$custom-dark: #000000;
JSON
{
  "hex": "#231162",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 253.333,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2687,
    "c": 0.13122,
    "h": 283.3
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#231162
secondary
#849A34
accent
#ED3BC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #231162

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

Preview Lab → · Contrast checker → · Palette generator →

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