#310D54#310D54

#310D54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.119 H 301.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#310D54
RGBrgb(49, 13, 84)
HSLhsl(270, 73%, 19%)
HSVhsv(270, 85%, 33%)
CMYKcmyk(41.7%, 84.5%, 0%, 67.1%)
CIE-LABlab(13.11, 32.71, -35.39)
CIE-LCHlch(13.11, 48.19, 312.75°)
OKLaboklab(26.58% 0.062 -0.1011)
OKLCHoklch(26.58% 0.119 301.5)
XYZxyz(3.0104, 1.5809, 8.5323)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D54 #30540D
analogous
#0E0D54 #310D54 #540D54
triadic
#310D54 #54310D #0D5431
tetradic
#310D54 #540E0D #30540D #0D5454
square
#310D54 #540E0D #30540D #0D5454
split-complementary
#310D54 #54540D #0D540E
monochromatic
#0F041A #12051F #310D54 #501589 #6F1DBE

Accessibility & contrast

On white

15.96
#310D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D54
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D54#FFFFFF#000000##FFFFFF
##310D541.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#292030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310d54;
/* rgb */ color: rgb(49, 13, 84);
/* oklch */ color: oklch(26.6% 0.119 301.5);
Tailwind
colors: {
  custom: {
    50: '#6d5085',
    500: '#310d54',
    950: '#000000',
  },
}
SCSS
$custom: #310d54;
$custom-light: #6d5085;
$custom-dark: #000000;
JSON
{
  "hex": "#310d54",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 270.423,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26585,
    "c": 0.11857,
    "h": 301.5
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#310D54
secondary
#5E8F2E
accent
#F03893
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310D54

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

Preview Lab → · Contrast checker → · Palette generator →

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