#311E7A#311E7A

#311E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.146 H 284.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#311E7A
RGBrgb(49, 30, 122)
HSLhsl(252, 61%, 30%)
HSVhsv(252, 75%, 48%)
CMYKcmyk(59.8%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.99, 35.21, -49.14)
CIE-LCHlch(19.99, 60.45, 305.62°)
OKLaboklab(32.57% 0.036 -0.1415)
OKLCHoklch(32.57% 0.146 284.3)
XYZxyz(5.2427, 2.9863, 18.7087)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E7A #677A1E
analogous
#1E397A #311E7A #5F1E7A
triadic
#311E7A #7A311E #1E7A31
tetradic
#311E7A #7A1E39 #677A1E #1E7A5F
square
#311E7A #7A1E39 #677A1E #1E7A5F
split-complementary
#311E7A #7A5F1E #397A1E
monochromatic
#0A0619 #1D1249 #311E7A #452AAB #5F42D0

Accessibility & contrast

On white

13.15
#311E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E7A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E7A#FFFFFF#000000##FFFFFF
##311E7A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#09374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311e7a;
/* rgb */ color: rgb(49, 30, 122);
/* oklch */ color: oklch(32.6% 0.146 284.3);
Tailwind
colors: {
  custom: {
    50: '#725ca1',
    500: '#311e7a',
    950: '#000000',
  },
}
SCSS
$custom: #311e7a;
$custom-light: #725ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#311e7a",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 252.391,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.14603,
    "h": 284.3
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#311E7A
secondary
#98AE46
accent
#E444C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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