#310D56#310D56

#310D56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.121 H 300.5°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#310D56
RGBrgb(49, 13, 86)
HSLhsl(270, 74%, 19%)
HSVhsv(270, 85%, 34%)
CMYKcmyk(43%, 84.9%, 0%, 66.3%)
CIE-LABlab(13.31, 33.25, -36.43)
CIE-LCHlch(13.31, 49.33, 312.39°)
OKLaboklab(26.78% 0.0614 -0.1041)
OKLCHoklch(26.78% 0.121 300.5)
XYZxyz(3.0898, 1.6127, 8.9508)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D56 #32560D
analogous
#0D0E56 #310D56 #560D56
triadic
#310D56 #56310D #0D5631
tetradic
#310D56 #560D0E #32560D #0D5656
square
#310D56 #560D0E #32560D #0D5656
split-complementary
#310D56 #56560D #0E560D
monochromatic
#0F041B #130521 #310D56 #4F158B #6E1DC0

Accessibility & contrast

On white

15.88
#310D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D56
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D56#FFFFFF#000000##FFFFFF
##310D561.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#282131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310d56;
/* rgb */ color: rgb(49, 13, 86);
/* oklch */ color: oklch(26.8% 0.121 300.5);
Tailwind
colors: {
  custom: {
    50: '#6e5186',
    500: '#310d56',
    950: '#000000',
  },
}
SCSS
$custom: #310d56;
$custom-light: #6e5186;
$custom-dark: #000000;
JSON
{
  "hex": "#310d56",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 269.589,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.12087,
    "h": 300.5
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#310D56
secondary
#60912E
accent
#F03795
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310D56

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

Preview Lab → · Contrast checker → · Palette generator →

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