#310E51#310E51

#310E51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.114 H 302.9°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#310E51
RGBrgb(49, 14, 81)
HSLhsl(271, 71%, 19%)
HSVhsv(271, 83%, 32%)
CMYKcmyk(39.5%, 82.7%, 0%, 68.2%)
CIE-LABlab(12.99, 31.43, -33.54)
CIE-LCHlch(12.99, 45.96, 313.14°)
OKLaboklab(26.41% 0.0619 -0.0956)
OKLCHoklch(26.41% 0.114 302.9)
XYZxyz(2.9085, 1.5611, 7.9311)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E51 #2E510E
analogous
#0F0E51 #310E51 #510E4F
triadic
#310E51 #51310E #0E5131
tetradic
#310E51 #510F0E #2E510E #0E4F51
square
#310E51 #510F0E #2E510E #0E4F51
split-complementary
#310E51 #4F510E #0E510F
monochromatic
#10051A #11051D #310E51 #511785 #7020B9

Accessibility & contrast

On white

16.00
#310E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#310E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E51
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E51#FFFFFF#000000##FFFFFF
##310E511.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#2A1F2F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310e51;
/* rgb */ color: rgb(49, 14, 81);
/* oklch */ color: oklch(26.4% 0.114 302.9);
Tailwind
colors: {
  custom: {
    50: '#6d5182',
    500: '#310e51',
    950: '#000000',
  },
}
SCSS
$custom: #310e51;
$custom-light: #6d5182;
$custom-dark: #000000;
JSON
{
  "hex": "#310e51",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 271.343,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26411,
    "c": 0.11392,
    "h": 302.9
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#310E51
secondary
#5B8C2F
accent
#ED3A90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310E51

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

Preview Lab → · Contrast checker → · Palette generator →

#310E51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva