#231796#231796

#231796 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.190 H 273.5°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#231796
RGBrgb(35, 23, 150)
HSLhsl(246, 73%, 34%)
HSVhsv(246, 85%, 59%)
CMYKcmyk(76.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.72, 46.23, -65.55)
CIE-LCHlch(20.72, 80.21, 305.20°)
OKLaboklab(33.71% 0.0115 -0.1896)
OKLCHoklch(33.71% 0.19 273.5)
XYZxyz(6.5027, 3.1714, 29.1177)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231796 #8A9617
analogous
#174B96 #231796 #631796
triadic
#231796 #962317 #179623
tetradic
#231796 #96174B #8A9617 #179663
square
#231796 #96174B #8A9617 #179663
split-complementary
#231796 #966317 #4B9617
monochromatic
#0A072C #170F61 #231796 #2F1FCB #5445E2

Accessibility & contrast

On white

12.85
#231796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#231796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231796
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231796#FFFFFF#000000##FFFFFF
##2317961.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231796;
/* rgb */ color: rgb(35, 23, 150);
/* oklch */ color: oklch(33.7% 0.190 273.5);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#231796',
    950: '#000000',
  },
}
SCSS
$custom: #231796;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#231796",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 245.669,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33713,
    "c": 0.18991,
    "h": 273.5
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#231796
secondary
#B7C345
accent
#F038DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231796

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

Preview Lab → · Contrast checker → · Palette generator →

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