#231996#231996

#231996 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.188 H 273.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#231996
RGBrgb(35, 25, 150)
HSLhsl(245, 71%, 34%)
HSVhsv(245, 83%, 59%)
CMYKcmyk(76.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(21.03, 45.30, -65.02)
CIE-LCHlch(21.03, 79.25, 304.87°)
OKLaboklab(33.93% 0.0109 -0.1881)
OKLCHoklch(33.93% 0.188 273.3)
XYZxyz(6.5440, 3.2539, 29.1314)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231996 #8C9619
analogous
#194E96 #231996 #621996
triadic
#231996 #962319 #199623
tetradic
#231996 #96194E #8C9619 #199662
square
#231996 #96194E #8C9619 #199662
split-complementary
#231996 #966219 #4E9619
monochromatic
#0B082D #171062 #231996 #2F22CA #5549E1

Accessibility & contrast

On white

12.72
#231996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#231996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231996
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231996#FFFFFF#000000##FFFFFF
##2319961.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #231996;
/* rgb */ color: rgb(35, 25, 150);
/* oklch */ color: oklch(33.9% 0.188 273.3);
Tailwind
colors: {
  custom: {
    50: '#735ab6',
    500: '#231996',
    950: '#000000',
  },
}
SCSS
$custom: #231996;
$custom-light: #735ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#231996",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 244.8,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.1884,
    "h": 273.3
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#231996
secondary
#B8C249
accent
#EE3AE0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231996

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

Preview Lab → · Contrast checker → · Palette generator →

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