#23165E#23165E

#23165E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.120 H 283.2°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#23165E
RGBrgb(35, 22, 94)
HSLhsl(251, 62%, 23%)
HSVhsv(251, 77%, 37%)
CMYKcmyk(62.8%, 76.6%, 0%, 63.1%)
CIE-LABlab(14.05, 28.47, -40.66)
CIE-LCHlch(14.05, 49.64, 305.00°)
OKLaboklab(27.15% 0.0274 -0.1171)
OKLCHoklch(27.15% 0.12 283.2)
XYZxyz(2.9998, 1.7391, 10.7651)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23165E #515E16
analogous
#162D5E #23165E #47165E
triadic
#23165E #5E2316 #165E23
tetradic
#23165E #5E162D #515E16 #165E47
square
#23165E #5E162D #515E16 #165E47
split-complementary
#23165E #5E4716 #2D5E16
monochromatic
#090619 #110A2C #23165E #352290 #482DC1

Accessibility & contrast

On white

15.58
#23165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#23165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23165E
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23165E#FFFFFF#000000##FFFFFF
##23165E1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#022A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #23165e;
/* rgb */ color: rgb(35, 22, 94);
/* oklch */ color: oklch(27.2% 0.120 283.2);
Tailwind
colors: {
  custom: {
    50: '#66558c',
    500: '#23165e',
    950: '#000000',
  },
}
SCSS
$custom: #23165e;
$custom-light: #66558c;
$custom-dark: #000000;
JSON
{
  "hex": "#23165e",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 250.833,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2715,
    "c": 0.12029,
    "h": 283.2
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#23165E
secondary
#85953B
accent
#E543C8
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23165E

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

Preview Lab → · Contrast checker → · Palette generator →

#23165E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva