#23145F#23145F

#23145F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.124 H 283.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#23145F
RGBrgb(35, 20, 95)
HSLhsl(252, 65%, 23%)
HSVhsv(252, 79%, 37%)
CMYKcmyk(63.2%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.73, 30.01, -41.86)
CIE-LCHlch(13.73, 51.50, 305.63°)
OKLaboklab(26.95% 0.0288 -0.1206)
OKLCHoklch(26.95% 0.124 283.4)
XYZxyz(3.0082, 1.6837, 10.9907)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23145F #505F14
analogous
#142B5F #23145F #48145F
triadic
#23145F #5F2314 #145F23
tetradic
#23145F #5F142B #505F14 #145F48
square
#23145F #5F142B #505F14 #145F48
split-complementary
#23145F #5F4814 #2B5F14
monochromatic
#090519 #10092C #23145F #361F92 #4829C4

Accessibility & contrast

On white

15.71
#23145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#23145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23145F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23145F#FFFFFF#000000##FFFFFF
##23145F1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23145f;
/* rgb */ color: rgb(35, 20, 95);
/* oklch */ color: oklch(27.0% 0.124 283.4);
Tailwind
colors: {
  custom: {
    50: '#66538d',
    500: '#23145f',
    950: '#000000',
  },
}
SCSS
$custom: #23145f;
$custom-light: #66538d;
$custom-dark: #000000;
JSON
{
  "hex": "#23145f",
  "rgb": {
    "r": 35,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26953,
    "c": 0.12403,
    "h": 283.4
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#23145F
secondary
#849738
accent
#E840C6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23145F

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

Preview Lab → · Contrast checker → · Palette generator →

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