#311D7E#311D7E

#311D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.152 H 283.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#311D7E
RGBrgb(49, 29, 126)
HSLhsl(252, 63%, 30%)
HSVhsv(252, 77%, 49%)
CMYKcmyk(61.1%, 77%, 0%, 50.6%)
CIE-LABlab(20.19, 37.04, -51.35)
CIE-LCHlch(20.19, 63.31, 305.81°)
OKLaboklab(32.84% 0.0358 -0.148)
OKLCHoklch(32.84% 0.152 283.6)
XYZxyz(5.4707, 3.0377, 20.0327)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D7E #6A7E1D
analogous
#1D397E #311D7E #611D7E
triadic
#311D7E #7E311D #1D7E31
tetradic
#311D7E #7E1D39 #6A7E1D #1D7E61
square
#311D7E #7E1D39 #6A7E1D #1D7E61
split-complementary
#311D7E #7E611D #397E1D
monochromatic
#0A061B #1E124C #311D7E #4428B0 #6042D3

Accessibility & contrast

On white

13.06
#311D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D7E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D7E#FFFFFF#000000##FFFFFF
##311D7E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#01384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311d7e;
/* rgb */ color: rgb(49, 29, 126);
/* oklch */ color: oklch(32.8% 0.152 283.6);
Tailwind
colors: {
  custom: {
    50: '#735ca4',
    500: '#311d7e',
    950: '#000000',
  },
}
SCSS
$custom: #311d7e;
$custom-light: #735ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#311d7e",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 252.371,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32839,
    "c": 0.15224,
    "h": 283.6
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#311D7E
secondary
#9BB145
accent
#E642C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311D7E

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

Preview Lab → · Contrast checker → · Palette generator →

#311D7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva