#311E8A#311E8A

#311E8A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.166 H 281.1°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#311E8A
RGBrgb(49, 30, 138)
HSLhsl(251, 64%, 33%)
HSVhsv(251, 78%, 54%)
CMYKcmyk(64.5%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.64, 40.30, -56.53)
CIE-LCHlch(21.64, 69.42, 305.48°)
OKLaboklab(34.23% 0.0319 -0.1631)
OKLCHoklch(34.23% 0.166 281.1)
XYZxyz(6.3169, 3.4160, 24.3663)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E8A #778A1E
analogous
#1E418A #311E8A #671E8A
triadic
#311E8A #8A311E #1E8A31
tetradic
#311E8A #8A1E41 #778A1E #1E8A67
square
#311E8A #8A1E41 #778A1E #1E8A67
split-complementary
#311E8A #8A671E #418A1E
monochromatic
#0D0825 #1F1358 #311E8A #4329BC #634BD8

Accessibility & contrast

On white

12.48
#311E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#311E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E8A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E8A#FFFFFF#000000##FFFFFF
##311E8A1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311e8a;
/* rgb */ color: rgb(49, 30, 138);
/* oklch */ color: oklch(34.2% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#765dad',
    500: '#311e8a',
    950: '#000000',
  },
}
SCSS
$custom: #311e8a;
$custom-light: #765dad;
$custom-dark: #000000;
JSON
{
  "hex": "#311e8a",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 250.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34232,
    "c": 0.16621,
    "h": 281.1
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#311E8A
secondary
#A6BA4A
accent
#E741CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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