#311169#311169

#311169 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.139 H 291.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#311169
RGBrgb(49, 17, 105)
HSLhsl(262, 72%, 24%)
HSVhsv(262, 84%, 41%)
CMYKcmyk(53.3%, 83.8%, 0%, 58.8%)
CIE-LABlab(15.87, 36.79, -44.91)
CIE-LCHlch(15.87, 58.05, 309.32°)
OKLaboklab(29.15% 0.0516 -0.129)
OKLCHoklch(29.15% 0.139 291.8)
XYZxyz(4.0162, 2.0736, 13.5505)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311169 #496911
analogous
#111D69 #311169 #5D1169
triadic
#311169 #693111 #116931
tetradic
#311169 #69111D #496911 #11695D
square
#311169 #69111D #496911 #11695D
split-complementary
#311169 #695D11 #1D6911
monochromatic
#0C041A #180834 #311169 #4A1A9E #6222D2

Accessibility & contrast

On white

14.84
#311169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311169 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311169
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311169#FFFFFF#000000##FFFFFF
##3111691.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#1E2B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311169;
/* rgb */ color: rgb(49, 17, 105);
/* oklch */ color: oklch(29.2% 0.139 291.8);
Tailwind
colors: {
  custom: {
    50: '#705495',
    500: '#311169',
    950: '#000000',
  },
}
SCSS
$custom: #311169;
$custom-light: #705495;
$custom-dark: #000000;
JSON
{
  "hex": "#311169",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 261.818,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29152,
    "c": 0.13893,
    "h": 291.8
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#311169
secondary
#7AA135
accent
#EF39AD
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311169

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

Preview Lab → · Contrast checker → · Palette generator →

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