#231166#231166

#231166 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.136 H 282.3°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#231166
RGBrgb(35, 17, 102)
HSLhsl(253, 71%, 23%)
HSVhsv(253, 83%, 40%)
CMYKcmyk(65.7%, 83.3%, 0%, 60%)
CIE-LABlab(13.93, 33.97, -46.19)
CIE-LCHlch(13.93, 57.33, 306.33°)
OKLaboklab(27.32% 0.0289 -0.1332)
OKLCHoklch(27.32% 0.136 282.3)
XYZxyz(3.2911, 1.7173, 12.7258)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231166 #546611
analogous
#112966 #231166 #4D1166
triadic
#231166 #662311 #116623
tetradic
#231166 #661129 #546611 #11664D
square
#231166 #661129 #546611 #11664D
split-complementary
#231166 #664D11 #296611
monochromatic
#09041A #110832 #231166 #351A9A #4722CF

Accessibility & contrast

On white

15.63
#231166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#231166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231166
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231166#FFFFFF#000000##FFFFFF
##2311661.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002668
Deuteranopia (green-blind)
#002064
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #231166;
/* rgb */ color: rgb(35, 17, 102);
/* oklch */ color: oklch(27.3% 0.136 282.3);
Tailwind
colors: {
  custom: {
    50: '#685293',
    500: '#231166',
    950: '#000000',
  },
}
SCSS
$custom: #231166;
$custom-light: #685293;
$custom-dark: #000000;
JSON
{
  "hex": "#231166",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 252.706,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27324,
    "c": 0.13633,
    "h": 282.3
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#231166
secondary
#889E35
accent
#EE3AC8
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #231166

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

Preview Lab → · Contrast checker → · Palette generator →

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