#231371#231371

#231371 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.148 H 279.4°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#231371
RGBrgb(35, 19, 113)
HSLhsl(250, 71%, 26%)
HSVhsv(250, 83%, 44%)
CMYKcmyk(69%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.57, 36.48, -50.68)
CIE-LCHlch(15.57, 62.44, 305.75°)
OKLaboklab(28.84% 0.0242 -0.1463)
OKLCHoklch(28.84% 0.148 279.4)
XYZxyz(3.9057, 2.0150, 15.8027)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231371 #617113
analogous
#133271 #231371 #521371
triadic
#231371 #712313 #137123
tetradic
#231371 #711332 #617113 #137152
square
#231371 #711332 #617113 #137152
split-complementary
#231371 #715213 #327113
monochromatic
#08041A #130A3D #231371 #331CA5 #4325DA

Accessibility & contrast

On white

14.97
#231371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#231371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231371
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231371#FFFFFF#000000##FFFFFF
##2313711.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231371;
/* rgb */ color: rgb(35, 19, 113);
/* oklch */ color: oklch(28.8% 0.148 279.4);
Tailwind
colors: {
  custom: {
    50: '#6b549b',
    500: '#231371',
    950: '#000000',
  },
}
SCSS
$custom: #231371;
$custom-light: #6b549b;
$custom-dark: #000000;
JSON
{
  "hex": "#231371",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 250.213,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28843,
    "c": 0.14833,
    "h": 279.4
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#231371
secondary
#95A838
accent
#EE3ACF
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231371

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

Preview Lab → · Contrast checker → · Palette generator →

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