#23125E#23125E

#23125E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.125 H 284.2°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#23125E
RGBrgb(35, 18, 94)
HSLhsl(253, 68%, 22%)
HSVhsv(253, 81%, 37%)
CMYKcmyk(62.8%, 80.9%, 0%, 63.1%)
CIE-LABlab(13.22, 30.82, -42.04)
CIE-LCHlch(13.22, 52.13, 306.25°)
OKLaboklab(26.56% 0.0307 -0.1211)
OKLCHoklch(26.56% 0.125 284.2)
XYZxyz(2.9292, 1.5979, 10.7416)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23125E #4D5E12
analogous
#12275E #23125E #49125E
triadic
#23125E #5E2312 #125E23
tetradic
#23125E #5E1227 #4D5E12 #125E49
square
#23125E #5E1227 #4D5E12 #125E49
split-complementary
#23125E #5E4912 #275E12
monochromatic
#0A051A #10082B #23125E #361C91 #4926C5

Accessibility & contrast

On white

15.91
#23125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#23125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23125E
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23125E#FFFFFF#000000##FFFFFF
##23125E1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#022837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23125e;
/* rgb */ color: rgb(35, 18, 94);
/* oklch */ color: oklch(26.6% 0.125 284.2);
Tailwind
colors: {
  custom: {
    50: '#66528d',
    500: '#23125e',
    950: '#000000',
  },
}
SCSS
$custom: #23125e;
$custom-light: #66528d;
$custom-dark: #000000;
JSON
{
  "hex": "#23125e",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 253.421,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26559,
    "c": 0.12496,
    "h": 284.2
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#23125E
secondary
#819635
accent
#EB3DC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23125E

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

Preview Lab → · Contrast checker → · Palette generator →

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