#231797#231797

#231797 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.191 H 273.4°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#231797
RGBrgb(35, 23, 151)
HSLhsl(246, 74%, 34%)
HSVhsv(246, 85%, 59%)
CMYKcmyk(76.8%, 84.8%, 0%, 40.8%)
CIE-LABlab(20.84, 46.54, -65.96)
CIE-LCHlch(20.84, 80.72, 305.21°)
OKLaboklab(33.83% 0.0113 -0.1907)
OKLCHoklch(33.83% 0.191 273.4)
XYZxyz(6.5836, 3.2038, 29.5436)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231797 #8B9717
analogous
#174B97 #231797 #631797
triadic
#231797 #972317 #179723
tetradic
#231797 #97174B #8B9717 #179763
square
#231797 #97174B #8B9717 #179763
split-complementary
#231797 #976317 #4B9717
monochromatic
#0A072D #170F62 #231797 #2F1FCC #5446E3

Accessibility & contrast

On white

12.80
#231797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#231797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231797
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231797#FFFFFF#000000##FFFFFF
##2317971.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231797;
/* rgb */ color: rgb(35, 23, 151);
/* oklch */ color: oklch(33.8% 0.191 273.4);
Tailwind
colors: {
  custom: {
    50: '#7459b7',
    500: '#231797',
    950: '#000000',
  },
}
SCSS
$custom: #231797;
$custom-light: #7459b7;
$custom-dark: #000000;
JSON
{
  "hex": "#231797",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 245.625,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33834,
    "c": 0.19108,
    "h": 273.4
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231797

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

Preview Lab → · Contrast checker → · Palette generator →

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