#231173#231173

#231173 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.153 H 279.3°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#231173
RGBrgb(35, 17, 115)
HSLhsl(251, 74%, 26%)
HSVhsv(251, 85%, 45%)
CMYKcmyk(69.6%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.46, 38.11, -52.14)
CIE-LCHlch(15.46, 64.58, 306.16°)
OKLaboklab(28.84% 0.0246 -0.1506)
OKLCHoklch(28.84% 0.153 279.3)
XYZxyz(3.9871, 1.9957, 16.3914)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231173 #617311
analogous
#113073 #231173 #541173
triadic
#231173 #732311 #117323
tetradic
#231173 #731130 #617311 #117354
square
#231173 #731130 #617311 #117354
split-complementary
#231173 #735411 #307311
monochromatic
#08041B #13093E #231173 #3319A8 #4321DE

Accessibility & contrast

On white

15.01
#231173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#231173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231173
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231173#FFFFFF#000000##FFFFFF
##2311731.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002371
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231173;
/* rgb */ color: rgb(35, 17, 115);
/* oklch */ color: oklch(28.8% 0.153 279.3);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#231173',
    950: '#000000',
  },
}
SCSS
$custom: #231173;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#231173",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 251.02,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28843,
    "c": 0.15257,
    "h": 279.3
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#231173
secondary
#95AA36
accent
#F137CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231173

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

Preview Lab → · Contrast checker → · Palette generator →

#231173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva