#310D50#310D50

#310D50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.114 H 303.7°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#310D50
RGBrgb(49, 13, 80)
HSLhsl(272, 72%, 18%)
HSVhsv(272, 84%, 31%)
CMYKcmyk(38.8%, 83.7%, 0%, 68.6%)
CIE-LABlab(12.73, 31.63, -33.27)
CIE-LCHlch(12.73, 45.91, 313.55°)
OKLaboklab(26.2% 0.0632 -0.0948)
OKLCHoklch(26.2% 0.114 303.7)
XYZxyz(2.8582, 1.5200, 7.7307)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D50 #2C500D
analogous
#0F0D50 #310D50 #500D4D
triadic
#310D50 #50310D #0D5031
tetradic
#310D50 #500F0D #2C500D #0D4D50
square
#310D50 #500F0D #2C500D #0D4D50
split-complementary
#310D50 #4D500D #0D500F
monochromatic
#10041A #11041B #310D50 #511685 #711EB9

Accessibility & contrast

On white

16.10
#310D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D50
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D50#FFFFFF#000000##FFFFFF
##310D501.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#2B1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310d50;
/* rgb */ color: rgb(49, 13, 80);
/* oklch */ color: oklch(26.2% 0.114 303.7);
Tailwind
colors: {
  custom: {
    50: '#6d5082',
    500: '#310d50',
    950: '#000000',
  },
}
SCSS
$custom: #310d50;
$custom-light: #6d5082;
$custom-dark: #000000;
JSON
{
  "hex": "#310d50",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 272.239,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26202,
    "c": 0.11396,
    "h": 303.7
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#310D50
secondary
#598B2E
accent
#EF398D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D50

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

Preview Lab → · Contrast checker → · Palette generator →

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