#23165F#23165F

#23165F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.3% C 0.122 H 282.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#23165F
RGBrgb(35, 22, 95)
HSLhsl(251, 62%, 23%)
HSVhsv(251, 77%, 37%)
CMYKcmyk(63.2%, 76.8%, 0%, 62.7%)
CIE-LABlab(14.16, 28.81, -41.16)
CIE-LCHlch(14.16, 50.24, 304.99°)
OKLaboklab(27.26% 0.0272 -0.1186)
OKLCHoklch(27.26% 0.122 282.9)
XYZxyz(3.0450, 1.7572, 11.0030)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23165F #525F16
analogous
#162D5F #23165F #47165F
triadic
#23165F #5F2316 #165F23
tetradic
#23165F #5F162D #525F16 #165F47
square
#23165F #5F162D #525F16 #165F47
split-complementary
#23165F #5F4716 #2D5F16
monochromatic
#090619 #110A2D #23165F #352291 #482DC2

Accessibility & contrast

On white

15.54
#23165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23165F
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23165F#FFFFFF#000000##FFFFFF
##23165F1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #23165f;
/* rgb */ color: rgb(35, 22, 95);
/* oklch */ color: oklch(27.3% 0.122 282.9);
Tailwind
colors: {
  custom: {
    50: '#66558d',
    500: '#23165f',
    950: '#000000',
  },
}
SCSS
$custom: #23165f;
$custom-light: #66558d;
$custom-dark: #000000;
JSON
{
  "hex": "#23165f",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 250.685,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27255,
    "c": 0.12166,
    "h": 282.9
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#23165F
secondary
#86963B
accent
#E542C8
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23165F

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

Preview Lab → · Contrast checker → · Palette generator →

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