#311774#311774

#311774 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.146 H 287.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#311774
RGBrgb(49, 23, 116)
HSLhsl(257, 67%, 27%)
HSVhsv(257, 80%, 45%)
CMYKcmyk(57.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(18.04, 37.13, -48.50)
CIE-LCHlch(18.04, 61.07, 307.44°)
OKLaboklab(31.01% 0.0433 -0.1396)
OKLCHoklch(31.01% 0.146 287.2)
XYZxyz(4.7245, 2.5265, 16.7583)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311774 #5A7417
analogous
#172C74 #311774 #5F1774
triadic
#311774 #743117 #177431
tetradic
#311774 #74172C #5A7417 #17745F
square
#311774 #74172C #5A7417 #17745F
split-complementary
#311774 #745F17 #2C7417
monochromatic
#0B051A #1B0D41 #311774 #4721A7 #5E30D6

Accessibility & contrast

On white

13.95
#311774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311774
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311774#FFFFFF#000000##FFFFFF
##3117741.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#133245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311774;
/* rgb */ color: rgb(49, 23, 116);
/* oklch */ color: oklch(31.0% 0.146 287.2);
Tailwind
colors: {
  custom: {
    50: '#72589d',
    500: '#311774',
    950: '#000000',
  },
}
SCSS
$custom: #311774;
$custom-light: #72589d;
$custom-dark: #000000;
JSON
{
  "hex": "#311774",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 256.774,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31012,
    "c": 0.14613,
    "h": 287.2
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#311774
secondary
#8BA93D
accent
#EA3EBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311774

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

Preview Lab → · Contrast checker → · Palette generator →

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