#310D52#310D52

#310D52 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.4% C 0.116 H 302.6°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#310D52
RGBrgb(49, 13, 82)
HSLhsl(271, 73%, 19%)
HSVhsv(271, 84%, 32%)
CMYKcmyk(40.2%, 84.1%, 0%, 67.8%)
CIE-LABlab(12.92, 32.17, -34.34)
CIE-LCHlch(12.92, 47.05, 313.13°)
OKLaboklab(26.39% 0.0626 -0.098)
OKLCHoklch(26.39% 0.116 302.6)
XYZxyz(2.9332, 1.5500, 8.1257)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D52 #2E520D
analogous
#0E0D52 #310D52 #520D50
triadic
#310D52 #52310D #0D5231
tetradic
#310D52 #520E0D #2E520D #0D5052
square
#310D52 #520E0D #2E520D #0D5052
split-complementary
#310D52 #50520D #0D520E
monochromatic
#10041A #11051D #310D52 #511587 #701EBC

Accessibility & contrast

On white

16.03
#310D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D52
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D52#FFFFFF#000000##FFFFFF
##310D521.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310d52;
/* rgb */ color: rgb(49, 13, 82);
/* oklch */ color: oklch(26.4% 0.116 302.6);
Tailwind
colors: {
  custom: {
    50: '#6d5083',
    500: '#310d52',
    950: '#000000',
  },
}
SCSS
$custom: #310d52;
$custom-light: #6d5083;
$custom-dark: #000000;
JSON
{
  "hex": "#310d52",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 271.304,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26392,
    "c": 0.11627,
    "h": 302.6
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#310D52
secondary
#5B8D2E
accent
#EF3890
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310D52

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

Preview Lab → · Contrast checker → · Palette generator →

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