#23165D#23165D

#23165D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.119 H 283.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#23165D
RGBrgb(35, 22, 93)
HSLhsl(251, 62%, 23%)
HSVhsv(251, 76%, 36%)
CMYKcmyk(62.4%, 76.3%, 0%, 63.5%)
CIE-LABlab(13.95, 28.13, -40.16)
CIE-LCHlch(13.95, 49.03, 305.00°)
OKLaboklab(27.05% 0.0276 -0.1157)
OKLCHoklch(27.05% 0.119 283.4)
XYZxyz(2.9552, 1.7213, 10.5303)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23165D #505D16
analogous
#162C5D #23165D #47165D
triadic
#23165D #5D2316 #165D23
tetradic
#23165D #5D162C #505D16 #165D47
square
#23165D #5D162C #505D16 #165D47
split-complementary
#23165D #5D4716 #2C5D16
monochromatic
#090619 #100A2C #23165D #36228E #482DC0

Accessibility & contrast

On white

15.62
#23165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#23165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23165D
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23165D#FFFFFF#000000##FFFFFF
##23165D1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#032938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23165d;
/* rgb */ color: rgb(35, 22, 93);
/* oklch */ color: oklch(27.0% 0.119 283.4);
Tailwind
colors: {
  custom: {
    50: '#66548c',
    500: '#23165d',
    950: '#000000',
  },
}
SCSS
$custom: #23165d;
$custom-light: #66548c;
$custom-dark: #000000;
JSON
{
  "hex": "#23165d",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 250.986,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27045,
    "c": 0.11892,
    "h": 283.4
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#23165D
secondary
#84943B
accent
#E543C7
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23165D

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

Preview Lab → · Contrast checker → · Palette generator →

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