#231072#231072

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

Color values

HEX#231072
RGBrgb(35, 16, 114)
HSLhsl(252, 75%, 25%)
HSVhsv(252, 86%, 45%)
CMYKcmyk(69.3%, 86%, 0%, 55.3%)
CIE-LABlab(15.18, 38.27, -51.96)
CIE-LCHlch(15.18, 64.53, 306.37°)
OKLaboklab(28.61% 0.0254 -0.15)
OKLCHoklch(28.61% 0.152 279.6)
XYZxyz(3.9147, 1.9425, 16.0850)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231072 #5F7210
analogous
#102E72 #231072 #541072
triadic
#231072 #722310 #107223
tetradic
#231072 #72102E #5F7210 #107254
square
#231072 #72102E #5F7210 #107254
split-complementary
#231072 #725410 #2E7210
monochromatic
#08041B #13083C #231072 #3318A8 #441FDD

Accessibility & contrast

On white

15.12
#231072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231072
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231072#FFFFFF#000000##FFFFFF
##2310721.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #231072;
/* rgb */ color: rgb(35, 16, 114);
/* oklch */ color: oklch(28.6% 0.152 279.6);
Tailwind
colors: {
  custom: {
    50: '#6b529c',
    500: '#231072',
    950: '#000000',
  },
}
SCSS
$custom: #231072;
$custom-light: #6b529c;
$custom-dark: #000000;
JSON
{
  "hex": "#231072",
  "rgb": {
    "r": 35,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 251.633,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28613,
    "c": 0.15217,
    "h": 279.6
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#231072
secondary
#93A934
accent
#F236CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #231072

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

Preview Lab → · Contrast checker → · Palette generator →

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