#311770#311770

#311770 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.141 H 288.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#311770
RGBrgb(49, 23, 112)
HSLhsl(258, 66%, 26%)
HSVhsv(258, 79%, 44%)
CMYKcmyk(56.3%, 79.5%, 0%, 56.1%)
CIE-LABlab(17.62, 35.91, -46.59)
CIE-LCHlch(17.62, 58.82, 307.62°)
OKLaboklab(30.6% 0.0445 -0.134)
OKLCHoklch(30.6% 0.141 288.4)
XYZxyz(4.4968, 2.4354, 15.5592)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311770 #567017
analogous
#172A70 #311770 #5E1770
triadic
#311770 #703117 #177031
tetradic
#311770 #70172A #567017 #17705E
square
#311770 #70172A #567017 #17705E
split-complementary
#311770 #705E17 #2A7017
monochromatic
#0B0519 #1B0D3D #311770 #4721A3 #5E2DD4

Accessibility & contrast

On white

14.12
#311770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311770
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311770#FFFFFF#000000##FFFFFF
##3117701.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#183043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311770;
/* rgb */ color: rgb(49, 23, 112);
/* oklch */ color: oklch(30.6% 0.141 288.4);
Tailwind
colors: {
  custom: {
    50: '#71579a',
    500: '#311770',
    950: '#000000',
  },
}
SCSS
$custom: #311770;
$custom-light: #71579a;
$custom-dark: #000000;
JSON
{
  "hex": "#311770",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 257.528,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30597,
    "c": 0.1412,
    "h": 288.4
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#311770
secondary
#87A63D
accent
#E93FB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311770

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

Preview Lab → · Contrast checker → · Palette generator →

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