#23125C#23125C

#23125C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.3% C 0.122 H 284.8°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#23125C
RGBrgb(35, 18, 92)
HSLhsl(254, 67%, 22%)
HSVhsv(254, 80%, 36%)
CMYKcmyk(62%, 80.4%, 0%, 63.9%)
CIE-LABlab(13.00, 30.16, -41.05)
CIE-LCHlch(13.00, 50.95, 306.31°)
OKLaboklab(26.34% 0.0313 -0.1182)
OKLCHoklch(26.34% 0.122 284.8)
XYZxyz(2.8406, 1.5625, 10.2750)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23125C #4B5C12
analogous
#12265C #23125C #48125C
triadic
#23125C #5C2312 #125C23
tetradic
#23125C #5C1226 #4B5C12 #125C48
square
#23125C #5C1226 #4B5C12 #125C48
split-complementary
#23125C #5C4812 #265C12
monochromatic
#0A051A #100829 #23125C #361C8F #4A26C2

Accessibility & contrast

On white

16.00
#23125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23125C
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23125C#FFFFFF#000000##FFFFFF
##23125C1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#052736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23125c;
/* rgb */ color: rgb(35, 18, 92);
/* oklch */ color: oklch(26.3% 0.122 284.8);
Tailwind
colors: {
  custom: {
    50: '#66528b',
    500: '#23125c',
    950: '#000000',
  },
}
SCSS
$custom: #23125c;
$custom-light: #66528b;
$custom-dark: #000000;
JSON
{
  "hex": "#23125c",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 253.784,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2634,
    "c": 0.12232,
    "h": 284.8
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#23125C
secondary
#7F9435
accent
#EA3EC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23125C

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

Preview Lab → · Contrast checker → · Palette generator →

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