#23125D#23125D

#23125D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.124 H 284.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#23125D
RGBrgb(35, 18, 93)
HSLhsl(254, 68%, 22%)
HSVhsv(254, 81%, 36%)
CMYKcmyk(62.4%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.11, 30.49, -41.55)
CIE-LCHlch(13.11, 51.54, 306.28°)
OKLaboklab(26.45% 0.031 -0.1197)
OKLCHoklch(26.45% 0.124 284.5)
XYZxyz(2.8846, 1.5801, 10.5068)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23125D #4C5D12
analogous
#12275D #23125D #49125D
triadic
#23125D #5D2312 #125D23
tetradic
#23125D #5D1227 #4C5D12 #125D49
square
#23125D #5D1227 #4C5D12 #125D49
split-complementary
#23125D #5D4912 #275D12
monochromatic
#0A051A #10082A #23125D #361C90 #4A26C4

Accessibility & contrast

On white

15.96
#23125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23125D
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23125D#FFFFFF#000000##FFFFFF
##23125D1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#042736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23125d;
/* rgb */ color: rgb(35, 18, 93);
/* oklch */ color: oklch(26.4% 0.124 284.5);
Tailwind
colors: {
  custom: {
    50: '#66528c',
    500: '#23125d',
    950: '#000000',
  },
}
SCSS
$custom: #23125d;
$custom-light: #66528c;
$custom-dark: #000000;
JSON
{
  "hex": "#23125d",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 253.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26449,
    "c": 0.12364,
    "h": 284.5
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#23125D
secondary
#809535
accent
#EA3DC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23125D

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

Preview Lab → · Contrast checker → · Palette generator →

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