#23135F#23135F

#23135F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.125 H 283.7°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#23135F
RGBrgb(35, 19, 95)
HSLhsl(253, 67%, 22%)
HSVhsv(253, 80%, 37%)
CMYKcmyk(63.2%, 80%, 0%, 62.7%)
CIE-LABlab(13.53, 30.59, -42.20)
CIE-LCHlch(13.53, 52.12, 305.94°)
OKLaboklab(26.81% 0.0296 -0.1216)
OKLCHoklch(26.81% 0.125 283.7)
XYZxyz(2.9909, 1.6491, 10.9850)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23135F #4F5F13
analogous
#13295F #23135F #49135F
triadic
#23135F #5F2313 #135F23
tetradic
#23135F #5F1329 #4F5F13 #135F49
square
#23135F #5F1329 #4F5F13 #135F49
split-complementary
#23135F #5F4913 #295F13
monochromatic
#09051A #10092C #23135F #361D92 #4927C5

Accessibility & contrast

On white

15.79
#23135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#23135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23135F
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23135F#FFFFFF#000000##FFFFFF
##23135F1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23135f;
/* rgb */ color: rgb(35, 19, 95);
/* oklch */ color: oklch(26.8% 0.125 283.7);
Tailwind
colors: {
  custom: {
    50: '#67538d',
    500: '#23135f',
    950: '#000000',
  },
}
SCSS
$custom: #23135f;
$custom-light: #67538d;
$custom-dark: #000000;
JSON
{
  "hex": "#23135f",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 252.632,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26809,
    "c": 0.12516,
    "h": 283.7
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#23135F
secondary
#839737
accent
#EA3EC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23135F

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

Preview Lab → · Contrast checker → · Palette generator →

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