#231171#231171

#231171 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.6% C 0.150 H 279.7°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#231171
RGBrgb(35, 17, 113)
HSLhsl(251, 74%, 25%)
HSVhsv(251, 85%, 44%)
CMYKcmyk(69%, 85%, 0%, 55.7%)
CIE-LABlab(15.22, 37.48, -51.25)
CIE-LCHlch(15.22, 63.49, 306.18°)
OKLaboklab(28.61% 0.0253 -0.148)
OKLCHoklch(28.61% 0.15 279.7)
XYZxyz(3.8733, 1.9502, 15.7919)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231171 #5F7111
analogous
#112F71 #231171 #531171
triadic
#231171 #712311 #117123
tetradic
#231171 #71112F #5F7111 #117153
square
#231171 #71112F #5F7111 #117153
split-complementary
#231171 #715311 #2F7111
monochromatic
#08041B #13093C #231171 #3319A6 #4421DB

Accessibility & contrast

On white

15.11
#231171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#231171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231171
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231171#FFFFFF#000000##FFFFFF
##2311711.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #231171;
/* rgb */ color: rgb(35, 17, 113);
/* oklch */ color: oklch(28.6% 0.150 279.7);
Tailwind
colors: {
  custom: {
    50: '#6b539b',
    500: '#231171',
    950: '#000000',
  },
}
SCSS
$custom: #231171;
$custom-light: #6b539b;
$custom-dark: #000000;
JSON
{
  "hex": "#231171",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 251.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28606,
    "c": 0.1501,
    "h": 279.7
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#231171
secondary
#93A836
accent
#F137CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #231171

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

Preview Lab → · Contrast checker → · Palette generator →

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