#23175F#23175F

#23175F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.120 H 282.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#23175F
RGBrgb(35, 23, 95)
HSLhsl(250, 61%, 23%)
HSVhsv(250, 76%, 37%)
CMYKcmyk(63.2%, 75.8%, 0%, 62.7%)
CIE-LABlab(14.38, 28.20, -40.80)
CIE-LCHlch(14.38, 49.59, 304.65°)
OKLaboklab(27.41% 0.0263 -0.1175)
OKLCHoklch(27.41% 0.12 282.6)
XYZxyz(3.0644, 1.7961, 11.0095)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23175F #535F17
analogous
#172F5F #23175F #47175F
triadic
#23175F #5F2317 #175F23
tetradic
#23175F #5F172F #535F17 #175F47
square
#23175F #5F172F #535F17 #175F47
split-complementary
#23175F #5F4717 #2F5F17
monochromatic
#090619 #110B2E #23175F #352390 #472FC2

Accessibility & contrast

On white

15.45
#23175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#23175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23175F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23175F#FFFFFF#000000##FFFFFF
##23175F1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #23175f;
/* rgb */ color: rgb(35, 23, 95);
/* oklch */ color: oklch(27.4% 0.120 282.6);
Tailwind
colors: {
  custom: {
    50: '#66558d',
    500: '#23175f',
    950: '#000000',
  },
}
SCSS
$custom: #23175f;
$custom-light: #66558d;
$custom-dark: #000000;
JSON
{
  "hex": "#23175f",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 250,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27413,
    "c": 0.12043,
    "h": 282.6
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#23175F
secondary
#87963C
accent
#E444C9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23175F

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

Preview Lab → · Contrast checker → · Palette generator →

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