#231799#231799

#231799 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.193 H 273.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#231799
RGBrgb(35, 23, 153)
HSLhsl(246, 74%, 35%)
HSVhsv(246, 85%, 60%)
CMYKcmyk(77.1%, 85%, 0%, 40%)
CIE-LABlab(21.09, 47.15, -66.78)
CIE-LCHlch(21.09, 81.75, 305.23°)
OKLaboklab(34.08% 0.0107 -0.1931)
OKLCHoklch(34.08% 0.193 273.2)
XYZxyz(6.7474, 3.2693, 30.4063)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231799 #8D9917
analogous
#174C99 #231799 #641799
triadic
#231799 #992317 #179923
tetradic
#231799 #99174C #8D9917 #179964
square
#231799 #99174C #8D9917 #179964
split-complementary
#231799 #996417 #4C9917
monochromatic
#0B072F #170F64 #231799 #2F1FCE #5547E3

Accessibility & contrast

On white

12.70
#231799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231799
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231799#FFFFFF#000000##FFFFFF
##2317991.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002C97
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #231799;
/* rgb */ color: rgb(35, 23, 153);
/* oklch */ color: oklch(34.1% 0.193 273.2);
Tailwind
colors: {
  custom: {
    50: '#7459b8',
    500: '#231799',
    950: '#000000',
  },
}
SCSS
$custom: #231799;
$custom-light: #7459b8;
$custom-dark: #000000;
JSON
{
  "hex": "#231799",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 153
  },
  "hsl": {
    "h": 245.538,
    "s": 73.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34077,
    "c": 0.19342,
    "h": 273.2
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#231799
secondary
#B9C547
accent
#F137DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231799

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

Preview Lab → · Contrast checker → · Palette generator →

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