#311A8E#311A8E

#311A8E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.175 H 280.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#311A8E
RGBrgb(49, 26, 142)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(65.5%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.37, 43.56, -59.47)
CIE-LCHlch(21.37, 73.71, 306.22°)
OKLaboklab(34.18% 0.0332 -0.1716)
OKLCHoklch(34.18% 0.175 280.9)
XYZxyz(6.5170, 3.3442, 25.8880)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A8E #778E1A
analogous
#1A3D8E #311A8E #6B1A8E
triadic
#311A8E #8E311A #1A8E31
tetradic
#311A8E #8E1A3D #778E1A #1A8E6B
square
#311A8E #8E1A3D #778E1A #1A8E6B
split-complementary
#311A8E #8E6B1A #3D8E1A
monochromatic
#0D0727 #1F115A #311A8E #4323C2 #6345DD

Accessibility & contrast

On white

12.58
#311A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#311A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A8E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A8E#FFFFFF#000000##FFFFFF
##311A8E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311a8e;
/* rgb */ color: rgb(49, 26, 142);
/* oklch */ color: oklch(34.2% 0.175 280.9);
Tailwind
colors: {
  custom: {
    50: '#775bb0',
    500: '#311a8e',
    950: '#000000',
  },
}
SCSS
$custom: #311a8e;
$custom-light: #775bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#311a8e",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 251.897,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.17479,
    "h": 280.9
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#311A8E
secondary
#A6BE45
accent
#EC3CC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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