#23126F#23126F

#23126F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.147 H 280.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#23126F
RGBrgb(35, 18, 111)
HSLhsl(251, 72%, 25%)
HSVhsv(251, 84%, 44%)
CMYKcmyk(68.5%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.15, 36.35, -50.06)
CIE-LCHlch(15.15, 61.86, 305.98°)
OKLaboklab(28.49% 0.0254 -0.1445)
OKLCHoklch(28.49% 0.147 280)
XYZxyz(3.7778, 1.9373, 15.2107)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23126F #5E6F12
analogous
#122F6F #23126F #52126F
triadic
#23126F #6F2312 #126F23
tetradic
#23126F #6F122F #5E6F12 #126F52
square
#23126F #6F122F #5E6F12 #126F52
split-complementary
#23126F #6F5212 #2F6F12
monochromatic
#08041A #12093A #23126F #341BA4 #4423D8

Accessibility & contrast

On white

15.13
#23126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#23126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23126F
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23126F#FFFFFF#000000##FFFFFF
##23126F1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #23126f;
/* rgb */ color: rgb(35, 18, 111);
/* oklch */ color: oklch(28.5% 0.147 280.0);
Tailwind
colors: {
  custom: {
    50: '#6a5399',
    500: '#23126f',
    950: '#000000',
  },
}
SCSS
$custom: #23126f;
$custom-light: #6a5399;
$custom-dark: #000000;
JSON
{
  "hex": "#23126f",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 250.968,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28488,
    "c": 0.14674,
    "h": 280
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#23126F
secondary
#92A637
accent
#EF39CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #23126F

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

Preview Lab → · Contrast checker → · Palette generator →

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