#231372#231372

#231372 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.150 H 279.2°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#231372
RGBrgb(35, 19, 114)
HSLhsl(250, 71%, 26%)
HSVhsv(250, 83%, 45%)
CMYKcmyk(69.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(15.68, 36.80, -51.13)
CIE-LCHlch(15.68, 63.00, 305.74°)
OKLaboklab(28.96% 0.0239 -0.1477)
OKLCHoklch(28.96% 0.15 279.2)
XYZxyz(3.9623, 2.0376, 16.1008)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231372 #627213
analogous
#133272 #231372 #521372
triadic
#231372 #722313 #137223
tetradic
#231372 #721332 #627213 #137252
square
#231372 #721332 #627213 #137252
split-complementary
#231372 #725213 #327213
monochromatic
#08041A #130A3E #231372 #331CA6 #4325DB

Accessibility & contrast

On white

14.92
#231372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231372
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231372#FFFFFF#000000##FFFFFF
##2313721.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231372;
/* rgb */ color: rgb(35, 19, 114);
/* oklch */ color: oklch(29.0% 0.150 279.2);
Tailwind
colors: {
  custom: {
    50: '#6b549c',
    500: '#231372',
    950: '#000000',
  },
}
SCSS
$custom: #231372;
$custom-light: #6b549c;
$custom-dark: #000000;
JSON
{
  "hex": "#231372",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 250.105,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28959,
    "c": 0.14958,
    "h": 279.2
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#231372
secondary
#96A938
accent
#EE3AD0
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231372

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

Preview Lab → · Contrast checker → · Palette generator →

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