#231271#231271

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

Color values

HEX#231271
RGBrgb(35, 18, 113)
HSLhsl(251, 73%, 26%)
HSVhsv(251, 84%, 44%)
CMYKcmyk(69%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.39, 36.99, -50.97)
CIE-LCHlch(15.39, 62.97, 305.97°)
OKLaboklab(28.72% 0.0248 -0.1472)
OKLCHoklch(28.72% 0.149 279.6)
XYZxyz(3.8891, 1.9819, 15.7972)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231271 #607112
analogous
#123071 #231271 #521271
triadic
#231271 #712312 #127123
tetradic
#231271 #711230 #607112 #127152
square
#231271 #711230 #607112 #127152
split-complementary
#231271 #715212 #307112
monochromatic
#08041A #130A3C #231271 #331AA6 #4423DB

Accessibility & contrast

On white

15.04
#231271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231271
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231271#FFFFFF#000000##FFFFFF
##2312711.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #231271;
/* rgb */ color: rgb(35, 18, 113);
/* oklch */ color: oklch(28.7% 0.149 279.6);
Tailwind
colors: {
  custom: {
    50: '#6b539b',
    500: '#231271',
    950: '#000000',
  },
}
SCSS
$custom: #231271;
$custom-light: #6b539b;
$custom-dark: #000000;
JSON
{
  "hex": "#231271",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 250.737,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28722,
    "c": 0.14923,
    "h": 279.6
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#231271
secondary
#94A837
accent
#EF39CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231271

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

Preview Lab → · Contrast checker → · Palette generator →

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