#311899#311899

#311899 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.189 H 279.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#311899
RGBrgb(49, 24, 153)
HSLhsl(252, 73%, 35%)
HSVhsv(252, 84%, 60%)
CMYKcmyk(68%, 84.3%, 0%, 40%)
CIE-LABlab(22.32, 47.75, -64.70)
CIE-LCHlch(22.32, 80.42, 306.43°)
OKLaboklab(35.2% 0.0305 -0.1868)
OKLCHoklch(35.2% 0.189 279.3)
XYZxyz(7.3412, 3.6055, 30.4399)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311899 #809918
analogous
#184099 #311899 #721899
triadic
#311899 #993118 #189931
tetradic
#311899 #991840 #809918 #189972
square
#311899 #991840 #809918 #189972
split-complementary
#311899 #997218 #409918
monochromatic
#0F072F #201064 #311899 #4220CE #6749E2

Accessibility & contrast

On white

12.20
#311899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#311899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311899
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311899#FFFFFF#000000##FFFFFF
##3118991.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311899;
/* rgb */ color: rgb(49, 24, 153);
/* oklch */ color: oklch(35.2% 0.189 279.3);
Tailwind
colors: {
  custom: {
    50: '#795bb8',
    500: '#311899',
    950: '#000000',
  },
}
SCSS
$custom: #311899;
$custom-light: #795bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311899",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 251.628,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35201,
    "c": 0.1893,
    "h": 279.3
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#311899
secondary
#ACC449
accent
#F038CC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311899

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

Preview Lab → · Contrast checker → · Palette generator →

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