#231176#231176

#231176 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.156 H 278.7°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#231176
RGBrgb(35, 17, 118)
HSLhsl(251, 75%, 26%)
HSVhsv(251, 86%, 46%)
CMYKcmyk(70.3%, 85.6%, 0%, 53.7%)
CIE-LABlab(15.83, 39.05, -53.48)
CIE-LCHlch(15.83, 66.22, 306.13°)
OKLaboklab(29.2% 0.0236 -0.1544)
OKLCHoklch(29.2% 0.156 278.7)
XYZxyz(4.1625, 2.0659, 17.3154)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231176 #647611
analogous
#113276 #231176 #561176
triadic
#231176 #762311 #117623
tetradic
#231176 #761132 #647611 #117656
square
#231176 #761132 #647611 #117656
split-complementary
#231176 #765611 #327611
monochromatic
#08041B #130941 #231176 #3319AB #4422DF

Accessibility & contrast

On white

14.86
#231176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#231176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231176
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231176#FFFFFF#000000##FFFFFF
##2311761.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231176;
/* rgb */ color: rgb(35, 17, 118);
/* oklch */ color: oklch(29.2% 0.156 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c539f',
    500: '#231176',
    950: '#000000',
  },
}
SCSS
$custom: #231176;
$custom-light: #6c539f;
$custom-dark: #000000;
JSON
{
  "hex": "#231176",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 250.693,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29201,
    "c": 0.15624,
    "h": 278.7
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#231176
secondary
#98AD36
accent
#F136D0
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #231176

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

Preview Lab → · Contrast checker → · Palette generator →

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