#231156#231156

#231156 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.116 H 287.0°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#231156
RGBrgb(35, 17, 86)
HSLhsl(256, 67%, 20%)
HSVhsv(256, 80%, 34%)
CMYKcmyk(59.3%, 80.2%, 0%, 66.3%)
CIE-LABlab(12.16, 28.77, -38.39)
CIE-LCHlch(12.16, 47.97, 306.84°)
OKLaboklab(25.55% 0.0339 -0.1104)
OKLCHoklch(25.55% 0.116 287)
XYZxyz(2.5728, 1.4300, 8.9427)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231156 #445611
analogous
#112256 #231156 #451156
triadic
#231156 #562311 #115623
tetradic
#231156 #561122 #445611 #115645
square
#231156 #561122 #445611 #115645
split-complementary
#231156 #564511 #225611
monochromatic
#0A051A #0E0723 #231156 #381B89 #4D25BC

Accessibility & contrast

On white

16.33
#231156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#231156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231156
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231156#FFFFFF#000000##FFFFFF
##2311561.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#0D2432
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231156;
/* rgb */ color: rgb(35, 17, 86);
/* oklch */ color: oklch(25.6% 0.116 287.0);
Tailwind
colors: {
  custom: {
    50: '#655186',
    500: '#231156',
    950: '#000000',
  },
}
SCSS
$custom: #231156;
$custom-light: #655186;
$custom-dark: #000000;
JSON
{
  "hex": "#231156",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 255.652,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25551,
    "c": 0.11552,
    "h": 287
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#231156
secondary
#778F34
accent
#EA3EBD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231156

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

Preview Lab → · Contrast checker → · Palette generator →

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