#231172#231172

#231172 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.151 H 279.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#231172
RGBrgb(35, 17, 114)
HSLhsl(251, 74%, 26%)
HSVhsv(251, 85%, 45%)
CMYKcmyk(69.3%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.34, 37.79, -51.70)
CIE-LCHlch(15.34, 64.04, 306.17°)
OKLaboklab(28.72% 0.0249 -0.1493)
OKLCHoklch(28.72% 0.151 279.5)
XYZxyz(3.9299, 1.9728, 16.0900)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231172 #607211
analogous
#112F72 #231172 #531172
triadic
#231172 #722311 #117223
tetradic
#231172 #72112F #607211 #117253
square
#231172 #72112F #607211 #117253
split-complementary
#231172 #725311 #2F7211
monochromatic
#08041B #13093D #231172 #3319A7 #4421DD

Accessibility & contrast

On white

15.06
#231172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#231172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231172
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231172#FFFFFF#000000##FFFFFF
##2311721.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #231172;
/* rgb */ color: rgb(35, 17, 114);
/* oklch */ color: oklch(28.7% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#231172',
    950: '#000000',
  },
}
SCSS
$custom: #231172;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#231172",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 251.134,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28724,
    "c": 0.15134,
    "h": 279.5
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#231172
secondary
#94A936
accent
#F137CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231172

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

Preview Lab → · Contrast checker → · Palette generator →

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