#23175D#23175D

#23175D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.118 H 283.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#23175D
RGBrgb(35, 23, 93)
HSLhsl(250, 60%, 23%)
HSVhsv(250, 75%, 36%)
CMYKcmyk(62.4%, 75.3%, 0%, 63.5%)
CIE-LABlab(14.17, 27.51, -39.80)
CIE-LCHlch(14.17, 48.38, 304.65°)
OKLaboklab(27.21% 0.0267 -0.1146)
OKLCHoklch(27.21% 0.118 283.1)
XYZxyz(2.9747, 1.7602, 10.5368)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23175D #515D17
analogous
#172E5D #23175D #46175D
triadic
#23175D #5D2317 #175D23
tetradic
#23175D #5D172E #515D17 #175D46
square
#23175D #5D172E #515D17 #175D46
split-complementary
#23175D #5D4617 #2E5D17
monochromatic
#090619 #110B2C #23175D #35238E #482FBF

Accessibility & contrast

On white

15.53
#23175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#23175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23175D
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23175D#FFFFFF#000000##FFFFFF
##23175D1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#032A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #23175d;
/* rgb */ color: rgb(35, 23, 93);
/* oklch */ color: oklch(27.2% 0.118 283.1);
Tailwind
colors: {
  custom: {
    50: '#66558c',
    500: '#23175d',
    950: '#000000',
  },
}
SCSS
$custom: #23175d;
$custom-light: #66558c;
$custom-dark: #000000;
JSON
{
  "hex": "#23175d",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 250.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27205,
    "c": 0.11767,
    "h": 283.1
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#23175D
secondary
#85943C
accent
#E344C8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23175D

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

Preview Lab → · Contrast checker → · Palette generator →

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