#231161#231161

#231161 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.130 H 283.6°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#231161
RGBrgb(35, 17, 97)
HSLhsl(254, 70%, 22%)
HSVhsv(254, 82%, 38%)
CMYKcmyk(63.9%, 82.5%, 0%, 62%)
CIE-LABlab(13.36, 32.35, -43.81)
CIE-LCHlch(13.36, 54.46, 306.45°)
OKLaboklab(26.76% 0.0306 -0.1263)
OKLCHoklch(26.76% 0.13 283.6)
XYZxyz(3.0506, 1.6211, 11.4591)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231161 #4F6111
analogous
#112761 #231161 #4B1161
triadic
#231161 #612311 #116123
tetradic
#231161 #611127 #4F6111 #11614B
square
#231161 #611127 #4F6111 #11614B
split-complementary
#231161 #614B11 #276111
monochromatic
#09051A #10082D #231161 #361A95 #4923C9

Accessibility & contrast

On white

15.86
#231161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#231161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231161
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231161#FFFFFF#000000##FFFFFF
##2311611.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002563
Deuteranopia (green-blind)
#002060
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #231161;
/* rgb */ color: rgb(35, 17, 97);
/* oklch */ color: oklch(26.8% 0.130 283.6);
Tailwind
colors: {
  custom: {
    50: '#67528f',
    500: '#231161',
    950: '#000000',
  },
}
SCSS
$custom: #231161;
$custom-light: #67528f;
$custom-dark: #000000;
JSON
{
  "hex": "#231161",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 253.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26757,
    "c": 0.12993,
    "h": 283.6
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#231161
secondary
#839934
accent
#ED3BC5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #231161

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

Preview Lab → · Contrast checker → · Palette generator →

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