#23125B#23125B

#23125B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.121 H 285.1°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#23125B
RGBrgb(35, 18, 91)
HSLhsl(254, 67%, 21%)
HSVhsv(254, 80%, 36%)
CMYKcmyk(61.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(12.89, 29.84, -40.56)
CIE-LCHlch(12.89, 50.35, 306.34°)
OKLaboklab(26.23% 0.0316 -0.1168)
OKLCHoklch(26.23% 0.121 285.1)
XYZxyz(2.7972, 1.5451, 10.0463)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23125B #4A5B12
analogous
#12265B #23125B #48125B
triadic
#23125B #5B2312 #125B23
tetradic
#23125B #5B1226 #4A5B12 #125B48
square
#23125B #5B1226 #4A5B12 #125B48
split-complementary
#23125B #5B4812 #265B12
monochromatic
#0A051A #0F0828 #23125B #371C8E #4A26C1

Accessibility & contrast

On white

16.04
#23125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#23125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23125B
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23125B#FFFFFF#000000##FFFFFF
##23125B1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#062635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23125b;
/* rgb */ color: rgb(35, 18, 91);
/* oklch */ color: oklch(26.2% 0.121 285.1);
Tailwind
colors: {
  custom: {
    50: '#66528a',
    500: '#23125b',
    950: '#000000',
  },
}
SCSS
$custom: #23125b;
$custom-light: #66528a;
$custom-dark: #000000;
JSON
{
  "hex": "#23125b",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 253.973,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26231,
    "c": 0.121,
    "h": 285.1
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#23125B
secondary
#7E9335
accent
#EA3EC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23125B

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

Preview Lab → · Contrast checker → · Palette generator →

#23125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva