#310D44#310D44

#310D44 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.100 H 311.1°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#310D44
RGBrgb(49, 13, 68)
HSLhsl(279, 68%, 16%)
HSVhsv(279, 81%, 27%)
CMYKcmyk(27.9%, 80.9%, 0%, 73.3%)
CIE-LABlab(11.68, 28.48, -26.66)
CIE-LCHlch(11.68, 39.01, 316.89°)
OKLaboklab(25.12% 0.0659 -0.0754)
OKLCHoklch(25.12% 0.1 311.1)
XYZxyz(2.4537, 1.3582, 5.6006)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D44 #20440D
analogous
#150D44 #310D44 #440D3B
triadic
#310D44 #44310D #0D4431
tetradic
#310D44 #44150D #20440D #0D3B44
square
#310D44 #44150D #20440D #0D3B44
split-complementary
#310D44 #3B440D #0D4415
monochromatic
#13051A #13051A #310D44 #561777 #7B21AB

Accessibility & contrast

On white

16.51
#310D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#310D44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D44
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D44#FFFFFF#000000##FFFFFF
##310D441.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D46
Deuteranopia (green-blind)
#051F43
Tritanopia (blue-blind)
#2F1927
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310d44;
/* rgb */ color: rgb(49, 13, 68);
/* oklch */ color: oklch(25.1% 0.100 311.1);
Tailwind
colors: {
  custom: {
    50: '#6c4f78',
    500: '#310d44',
    950: '#000000',
  },
}
SCSS
$custom: #310d44;
$custom-light: #6c4f78;
$custom-dark: #000000;
JSON
{
  "hex": "#310d44",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 68
  },
  "hsl": {
    "h": 279.273,
    "s": 67.901,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25123,
    "c": 0.10014,
    "h": 311.1
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#310D44
secondary
#4A7F2D
accent
#EB3D79
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310D44

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

Preview Lab → · Contrast checker → · Palette generator →

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