#311773#311773

#311773 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.145 H 287.5°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#311773
RGBrgb(49, 23, 115)
HSLhsl(257, 67%, 27%)
HSVhsv(257, 80%, 45%)
CMYKcmyk(57.4%, 80%, 0%, 54.9%)
CIE-LABlab(17.93, 36.82, -48.02)
CIE-LCHlch(17.93, 60.51, 307.48°)
OKLaboklab(30.91% 0.0436 -0.1382)
OKLCHoklch(30.91% 0.145 287.5)
XYZxyz(4.6666, 2.5033, 16.4536)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311773 #597317
analogous
#172B73 #311773 #5F1773
triadic
#311773 #733117 #177331
tetradic
#311773 #73172B #597317 #17735F
square
#311773 #73172B #597317 #17735F
split-complementary
#311773 #735F17 #2B7317
monochromatic
#0B051A #1B0D40 #311773 #4721A6 #5E2FD5

Accessibility & contrast

On white

13.99
#311773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311773
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311773#FFFFFF#000000##FFFFFF
##3117731.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#153144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311773;
/* rgb */ color: rgb(49, 23, 115);
/* oklch */ color: oklch(30.9% 0.145 287.5);
Tailwind
colors: {
  custom: {
    50: '#72579c',
    500: '#311773',
    950: '#000000',
  },
}
SCSS
$custom: #311773;
$custom-light: #72579c;
$custom-dark: #000000;
JSON
{
  "hex": "#311773",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 256.957,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30908,
    "c": 0.1449,
    "h": 287.5
  },
  "luminance": 0.02504
}

Semantic roles & 50–950 ramp

primary
#311773
secondary
#8AA93D
accent
#EA3EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311773

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

Preview Lab → · Contrast checker → · Palette generator →

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