#310F5D#310F5D

#310F5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.127 H 296.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#310F5D
RGBrgb(49, 15, 93)
HSLhsl(266, 72%, 21%)
HSVhsv(266, 84%, 36%)
CMYKcmyk(47.3%, 83.9%, 0%, 63.5%)
CIE-LABlab(14.32, 34.28, -39.50)
CIE-LCHlch(14.32, 52.30, 310.95°)
OKLaboklab(27.7% 0.0573 -0.1131)
OKLCHoklch(27.7% 0.127 296.9)
XYZxyz(3.4127, 1.7849, 10.5185)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F5D #3B5D0F
analogous
#0F145D #310F5D #580F5D
triadic
#310F5D #5D310F #0F5D31
tetradic
#310F5D #5D0F14 #3B5D0F #0F5D58
square
#310F5D #5D0F14 #3B5D0F #0F5D58
split-complementary
#310F5D #5D580F #145D0F
monochromatic
#0E041A #150628 #310F5D #4D1792 #6920C6

Accessibility & contrast

On white

15.48
#310F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#310F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F5D
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F5D#FFFFFF#000000##FFFFFF
##310F5D1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310f5d;
/* rgb */ color: rgb(49, 15, 93);
/* oklch */ color: oklch(27.7% 0.127 296.9);
Tailwind
colors: {
  custom: {
    50: '#6f528c',
    500: '#310f5d',
    950: '#000000',
  },
}
SCSS
$custom: #310f5d;
$custom-light: #6f528c;
$custom-dark: #000000;
JSON
{
  "hex": "#310f5d",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 266.154,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27696,
    "c": 0.12684,
    "h": 296.9
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#310F5D
secondary
#6A9631
accent
#EF39A0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #310F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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