#310D4E#310D4E

#310D4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.112 H 304.8°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#310D4E
RGBrgb(49, 13, 78)
HSLhsl(273, 71%, 18%)
HSVhsv(273, 83%, 31%)
CMYKcmyk(37.2%, 83.3%, 0%, 69.4%)
CIE-LABlab(12.55, 31.09, -32.20)
CIE-LCHlch(12.55, 44.76, 314.00°)
OKLaboklab(26.02% 0.0637 -0.0917)
OKLCHoklch(26.02% 0.112 304.8)
XYZxyz(2.7854, 1.4909, 7.3473)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D4E #2A4E0D
analogous
#100D4E #310D4E #4E0D4A
triadic
#310D4E #4E310D #0D4E31
tetradic
#310D4E #4E100D #2A4E0D #0D4A4E
square
#310D4E #4E100D #2A4E0D #0D4A4E
split-complementary
#310D4E #4A4E0D #0D4E10
monochromatic
#10041A #10041A #310D4E #521682 #731EB7

Accessibility & contrast

On white

16.18
#310D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D4E
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D4E#FFFFFF#000000##FFFFFF
##310D4E1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#2B1D2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310d4e;
/* rgb */ color: rgb(49, 13, 78);
/* oklch */ color: oklch(26.0% 0.112 304.8);
Tailwind
colors: {
  custom: {
    50: '#6d5080',
    500: '#310d4e',
    950: '#000000',
  },
}
SCSS
$custom: #310d4e;
$custom-light: #6d5080;
$custom-dark: #000000;
JSON
{
  "hex": "#310d4e",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 273.231,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26015,
    "c": 0.11166,
    "h": 304.8
  },
  "luminance": 0.01491
}

Semantic roles & 50–950 ramp

primary
#310D4E
secondary
#56892E
accent
#EE3A8A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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