#231168#231168

#231168 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.139 H 281.8°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#231168
RGBrgb(35, 17, 104)
HSLhsl(252, 72%, 24%)
HSVhsv(252, 84%, 41%)
CMYKcmyk(66.3%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.16, 34.61, -47.12)
CIE-LCHlch(14.16, 58.47, 306.30°)
OKLaboklab(27.55% 0.0283 -0.1359)
OKLCHoklch(27.55% 0.139 281.8)
XYZxyz(3.3915, 1.7574, 13.2545)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231168 #566811
analogous
#112A68 #231168 #4E1168
triadic
#231168 #682311 #116823
tetradic
#231168 #68112A #566811 #11684E
square
#231168 #68112A #566811 #11684E
split-complementary
#231168 #684E11 #2A6811
monochromatic
#09041A #110833 #231168 #351A9D #4622D1

Accessibility & contrast

On white

15.54
#231168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#231168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231168
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231168#FFFFFF#000000##FFFFFF
##2311681.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002166
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #231168;
/* rgb */ color: rgb(35, 17, 104);
/* oklch */ color: oklch(27.6% 0.139 281.8);
Tailwind
colors: {
  custom: {
    50: '#695294',
    500: '#231168',
    950: '#000000',
  },
}
SCSS
$custom: #231168;
$custom-light: #695294;
$custom-dark: #000000;
JSON
{
  "hex": "#231168",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 252.414,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27554,
    "c": 0.13886,
    "h": 281.8
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#231168
secondary
#8AA035
accent
#EF39C9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #231168

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

Preview Lab → · Contrast checker → · Palette generator →

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