#310E52#310E52

#310E52 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 302.4°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#310E52
RGBrgb(49, 14, 82)
HSLhsl(271, 71%, 19%)
HSVhsv(271, 83%, 32%)
CMYKcmyk(40.2%, 82.9%, 0%, 67.8%)
CIE-LABlab(13.08, 31.70, -34.07)
CIE-LCHlch(13.08, 46.54, 312.94°)
OKLaboklab(26.51% 0.0616 -0.0972)
OKLCHoklch(26.51% 0.115 302.4)
XYZxyz(2.9463, 1.5762, 8.1300)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E52 #2F520E
analogous
#0F0E52 #310E52 #520E51
triadic
#310E52 #52310E #0E5231
tetradic
#310E52 #520F0E #2F520E #0E5152
square
#310E52 #520F0E #2F520E #0E5152
split-complementary
#310E52 #51520E #0E520F
monochromatic
#10041A #12051E #310E52 #501786 #6F20BB

Accessibility & contrast

On white

15.97
#310E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#310E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E52
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E52#FFFFFF#000000##FFFFFF
##310E521.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#2A202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310e52;
/* rgb */ color: rgb(49, 14, 82);
/* oklch */ color: oklch(26.5% 0.115 302.4);
Tailwind
colors: {
  custom: {
    50: '#6d5183',
    500: '#310e52',
    950: '#000000',
  },
}
SCSS
$custom: #310e52;
$custom-light: #6d5183;
$custom-dark: #000000;
JSON
{
  "hex": "#310e52",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 270.882,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26506,
    "c": 0.11509,
    "h": 302.4
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#310E52
secondary
#5D8C2F
accent
#EE3A91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310E52

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

Preview Lab → · Contrast checker → · Palette generator →

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