#310E5D#310E5D

#310E5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.128 H 297.1°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#310E5D
RGBrgb(49, 14, 93)
HSLhsl(267, 74%, 21%)
HSVhsv(267, 85%, 36%)
CMYKcmyk(47.3%, 84.9%, 0%, 63.5%)
CIE-LABlab(14.16, 34.74, -39.76)
CIE-LCHlch(14.16, 52.80, 311.14°)
OKLaboklab(27.59% 0.0582 -0.1139)
OKLCHoklch(27.59% 0.128 297.1)
XYZxyz(3.3989, 1.7573, 10.5139)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E5D #3A5D0E
analogous
#0E125D #310E5D #580E5D
triadic
#310E5D #5D310E #0E5D31
tetradic
#310E5D #5D0E12 #3A5D0E #0E5D58
square
#310E5D #5D0E12 #3A5D0E #0E5D58
split-complementary
#310E5D #5D580E #125D0E
monochromatic
#0E041B #150628 #310E5D #4D1692 #691EC7

Accessibility & contrast

On white

15.54
#310E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#310E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E5D
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E5D#FFFFFF#000000##FFFFFF
##310E5D1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#252436
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #310e5d;
/* rgb */ color: rgb(49, 14, 93);
/* oklch */ color: oklch(27.6% 0.128 297.1);
Tailwind
colors: {
  custom: {
    50: '#6f518c',
    500: '#310e5d',
    950: '#000000',
  },
}
SCSS
$custom: #310e5d;
$custom-light: #6f518c;
$custom-dark: #000000;
JSON
{
  "hex": "#310e5d",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 266.582,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27587,
    "c": 0.12789,
    "h": 297.1
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#310E5D
secondary
#699730
accent
#F0379E
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #310E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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