#311E8D#311E8D

#311E8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 280.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#311E8D
RGBrgb(49, 30, 141)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(65.2%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.96, 41.24, -57.87)
CIE-LCHlch(21.96, 71.06, 305.47°)
OKLaboklab(34.55% 0.0311 -0.167)
OKLCHoklch(34.55% 0.17 280.6)
XYZxyz(6.5371, 3.5041, 25.5260)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E8D #7A8D1E
analogous
#1E428D #311E8D #681E8D
triadic
#311E8D #8D311E #1E8D31
tetradic
#311E8D #8D1E42 #7A8D1E #1E8D68
square
#311E8D #8D1E42 #7A8D1E #1E8D68
split-complementary
#311E8D #8D681E #428D1E
monochromatic
#0E0928 #1F135B #311E8D #4329BF #644CD9

Accessibility & contrast

On white

12.35
#311E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E8D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E8D#FFFFFF#000000##FFFFFF
##311E8D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311e8d;
/* rgb */ color: rgb(49, 30, 141);
/* oklch */ color: oklch(34.6% 0.170 280.6);
Tailwind
colors: {
  custom: {
    50: '#765daf',
    500: '#311e8d',
    950: '#000000',
  },
}
SCSS
$custom: #311e8d;
$custom-light: #765daf;
$custom-dark: #000000;
JSON
{
  "hex": "#311e8d",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 250.27,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34552,
    "c": 0.1699,
    "h": 280.6
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#311E8D
secondary
#A8BC4B
accent
#E840CB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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