#231062#231062

#231062 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.132 H 283.5°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#231062
RGBrgb(35, 16, 98)
HSLhsl(254, 72%, 22%)
HSVhsv(254, 84%, 38%)
CMYKcmyk(64.3%, 83.7%, 0%, 61.6%)
CIE-LABlab(13.29, 33.21, -44.59)
CIE-LCHlch(13.29, 55.60, 306.68°)
OKLaboklab(26.74% 0.0309 -0.1286)
OKLCHoklch(26.74% 0.132 283.5)
XYZxyz(3.0824, 1.6095, 11.7012)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231062 #4F6210
analogous
#102662 #231062 #4C1062
triadic
#231062 #622310 #106223
tetradic
#231062 #621026 #4F6210 #10624C
square
#231062 #621026 #4F6210 #10624C
split-complementary
#231062 #624C10 #266210
monochromatic
#09041A #10072D #231062 #361997 #4921CB

Accessibility & contrast

On white

15.89
#231062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#231062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231062
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231062#FFFFFF#000000##FFFFFF
##2310621.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #231062;
/* rgb */ color: rgb(35, 16, 98);
/* oklch */ color: oklch(26.7% 0.132 283.5);
Tailwind
colors: {
  custom: {
    50: '#685190',
    500: '#231062',
    950: '#000000',
  },
}
SCSS
$custom: #231062;
$custom-light: #685190;
$custom-dark: #000000;
JSON
{
  "hex": "#231062",
  "rgb": {
    "r": 35,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 253.902,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26743,
    "c": 0.13223,
    "h": 283.5
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#231062
secondary
#839B33
accent
#EF39C5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #231062

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

Preview Lab → · Contrast checker → · Palette generator →

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