#23165C#23165C

#23165C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.118 H 283.7°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#23165C
RGBrgb(35, 22, 92)
HSLhsl(251, 61%, 22%)
HSVhsv(251, 76%, 36%)
CMYKcmyk(62%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.85, 27.78, -39.66)
CIE-LCHlch(13.85, 48.42, 305.01°)
OKLaboklab(26.94% 0.0278 -0.1142)
OKLCHoklch(26.94% 0.118 283.7)
XYZxyz(2.9112, 1.7037, 10.2986)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23165C #4F5C16
analogous
#162C5C #23165C #46165C
triadic
#23165C #5C2316 #165C23
tetradic
#23165C #5C162C #4F5C16 #165C46
square
#23165C #5C162C #4F5C16 #165C46
split-complementary
#23165C #5C4616 #2C5C16
monochromatic
#090619 #100A2B #23165C #36228D #492EBF

Accessibility & contrast

On white

15.66
#23165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##23165C#FFFFFF#000000##FFFFFF
##23165C1.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)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#042937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23165c;
/* rgb */ color: rgb(35, 22, 92);
/* oklch */ color: oklch(26.9% 0.118 283.7);
Tailwind
colors: {
  custom: {
    50: '#66548b',
    500: '#23165c',
    950: '#000000',
  },
}
SCSS
$custom: #23165c;
$custom-light: #66548b;
$custom-dark: #000000;
JSON
{
  "hex": "#23165c",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 251.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26941,
    "c": 0.11754,
    "h": 283.7
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23165C

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

Preview Lab → · Contrast checker → · Palette generator →

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