#311E7B#311E7B

#311E7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.147 H 284.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#311E7B
RGBrgb(49, 30, 123)
HSLhsl(252, 61%, 30%)
HSVhsv(252, 76%, 48%)
CMYKcmyk(60.2%, 75.6%, 0%, 51.8%)
CIE-LABlab(20.09, 35.53, -49.61)
CIE-LCHlch(20.09, 61.02, 305.61°)
OKLaboklab(32.67% 0.0358 -0.1429)
OKLCHoklch(32.67% 0.147 284.1)
XYZxyz(5.3050, 3.0112, 19.0367)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E7B #687B1E
analogous
#1E3A7B #311E7B #5F1E7B
triadic
#311E7B #7B311E #1E7B31
tetradic
#311E7B #7B1E3A #687B1E #1E7B5F
square
#311E7B #7B1E3A #687B1E #1E7B5F
split-complementary
#311E7B #7B5F1E #3A7B1E
monochromatic
#0A0619 #1D124A #311E7B #452AAC #6042D1

Accessibility & contrast

On white

13.11
#311E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E7B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E7B#FFFFFF#000000##FFFFFF
##311E7B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#07384A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311e7b;
/* rgb */ color: rgb(49, 30, 123);
/* oklch */ color: oklch(32.7% 0.147 284.1);
Tailwind
colors: {
  custom: {
    50: '#735ca2',
    500: '#311e7b',
    950: '#000000',
  },
}
SCSS
$custom: #311e7b;
$custom-light: #735ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#311e7b",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 252.258,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.32673,
    "c": 0.14731,
    "h": 284.1
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#311E7B
secondary
#99AE46
accent
#E444C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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