#23126D#23126D

#23126D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.144 H 280.4°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#23126D
RGBrgb(35, 18, 109)
HSLhsl(251, 72%, 25%)
HSVhsv(251, 83%, 43%)
CMYKcmyk(67.9%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.92, 35.71, -49.14)
CIE-LCHlch(14.92, 60.75, 306.00°)
OKLaboklab(28.26% 0.0261 -0.1419)
OKLCHoklch(28.26% 0.144 280.4)
XYZxyz(3.6689, 1.8938, 14.6372)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23126D #5C6D12
analogous
#122E6D #23126D #51126D
triadic
#23126D #6D2312 #126D23
tetradic
#23126D #6D122E #5C6D12 #126D51
square
#23126D #6D122E #5C6D12 #126D51
split-complementary
#23126D #6D5112 #2E6D12
monochromatic
#08041A #120938 #23126D #341BA2 #4523D6

Accessibility & contrast

On white

15.23
#23126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#23126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23126D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23126D#FFFFFF#000000##FFFFFF
##23126D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #23126d;
/* rgb */ color: rgb(35, 18, 109);
/* oklch */ color: oklch(28.3% 0.144 280.4);
Tailwind
colors: {
  custom: {
    50: '#6a5398',
    500: '#23126d',
    950: '#000000',
  },
}
SCSS
$custom: #23126d;
$custom-light: #6a5398;
$custom-dark: #000000;
JSON
{
  "hex": "#23126d",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 251.209,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28255,
    "c": 0.14423,
    "h": 280.4
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#23126D
secondary
#90A437
accent
#EE39CD
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #23126D

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

Preview Lab → · Contrast checker → · Palette generator →

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