#231362#231362

#231362 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.129 H 282.9°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#231362
RGBrgb(35, 19, 98)
HSLhsl(252, 68%, 23%)
HSVhsv(252, 81%, 38%)
CMYKcmyk(64.3%, 80.6%, 0%, 61.6%)
CIE-LABlab(13.85, 31.58, -43.66)
CIE-LCHlch(13.85, 53.88, 305.88°)
OKLaboklab(27.14% 0.0288 -0.1259)
OKLCHoklch(27.14% 0.129 282.9)
XYZxyz(3.1299, 1.7047, 11.7170)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231362 #526213
analogous
#132A62 #231362 #4A1362
triadic
#231362 #622313 #136223
tetradic
#231362 #62132A #526213 #13624A
square
#231362 #62132A #526213 #13624A
split-complementary
#231362 #624A13 #2A6213
monochromatic
#09051A #11092F #231362 #351D95 #4827C9

Accessibility & contrast

On white

15.66
#231362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#231362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231362
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231362#FFFFFF#000000##FFFFFF
##2313621.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002161
Tritanopia (blue-blind)
#002A3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #231362;
/* rgb */ color: rgb(35, 19, 98);
/* oklch */ color: oklch(27.1% 0.129 282.9);
Tailwind
colors: {
  custom: {
    50: '#675390',
    500: '#231362',
    950: '#000000',
  },
}
SCSS
$custom: #231362;
$custom-light: #675390;
$custom-dark: #000000;
JSON
{
  "hex": "#231362",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 252.152,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27138,
    "c": 0.12912,
    "h": 282.9
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#231362
secondary
#869A37
accent
#EA3DC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #231362

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

Preview Lab → · Contrast checker → · Palette generator →

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