#311476#311476

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

Color values

HEX#311476
RGBrgb(49, 20, 118)
HSLhsl(258, 71%, 27%)
HSVhsv(258, 83%, 46%)
CMYKcmyk(58.5%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.74, 39.20, -50.27)
CIE-LCHlch(17.74, 63.75, 307.94°)
OKLaboklab(30.87% 0.0448 -0.1447)
OKLCHoklch(30.87% 0.152 287.2)
XYZxyz(4.7858, 2.4610, 17.3589)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311476 #597614
analogous
#142876 #311476 #621476
triadic
#311476 #763114 #147631
tetradic
#311476 #761428 #597614 #147662
square
#311476 #761428 #597614 #147662
split-complementary
#311476 #766214 #287614
monochromatic
#0B041A #1B0B42 #311476 #471DAA #5E2ADB

Accessibility & contrast

On white

14.07
#311476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311476
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311476#FFFFFF#000000##FFFFFF
##3114761.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#113145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311476;
/* rgb */ color: rgb(49, 20, 118);
/* oklch */ color: oklch(30.9% 0.152 287.2);
Tailwind
colors: {
  custom: {
    50: '#72569f',
    500: '#311476',
    950: '#000000',
  },
}
SCSS
$custom: #311476;
$custom-light: #72569f;
$custom-dark: #000000;
JSON
{
  "hex": "#311476",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 257.755,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3087,
    "c": 0.15151,
    "h": 287.2
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#311476
secondary
#8AAC3A
accent
#EE3AB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311476

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

Preview Lab → · Contrast checker → · Palette generator →

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