#231237#231237

#231237 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.8% C 0.070 H 302.3°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#231237
RGBrgb(35, 18, 55)
HSLhsl(268, 51%, 14%)
HSVhsv(268, 67%, 22%)
CMYKcmyk(36.4%, 67.3%, 0%, 78.4%)
CIE-LABlab(9.53, 18.08, -20.97)
CIE-LCHlch(9.53, 27.69, 310.77°)
OKLaboklab(22.77% 0.0376 -0.0593)
OKLCHoklch(22.77% 0.07 302.3)
XYZxyz(1.5989, 1.0658, 3.7352)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231237 #263712
analogous
#121437 #231237 #361237
triadic
#231237 #372312 #123723
tetradic
#231237 #371214 #263712 #123736
square
#231237 #371214 #263712 #123736
split-complementary
#231237 #373612 #143712
monochromatic
#0F0817 #0F0817 #231237 #402165 #5E3093

Accessibility & contrast

On white

17.31
#231237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#231237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231237
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231237#FFFFFF#000000##FFFFFF
##2312371.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A38
Deuteranopia (green-blind)
#091A36
Tritanopia (blue-blind)
#1F1922
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #231237;
/* rgb */ color: rgb(35, 18, 55);
/* oklch */ color: oklch(22.8% 0.070 302.3);
Tailwind
colors: {
  custom: {
    50: '#60506e',
    500: '#231237',
    950: '#000000',
  },
}
SCSS
$custom: #231237;
$custom-light: #60506e;
$custom-dark: #000000;
JSON
{
  "hex": "#231237",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 267.568,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22773,
    "c": 0.07019,
    "h": 302.3
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#231237
secondary
#557035
accent
#DA4E9A
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #231237

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

Preview Lab → · Contrast checker → · Palette generator →

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