#310E4A#310E4A

#310E4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.106 H 307.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#310E4A
RGBrgb(49, 14, 74)
HSLhsl(275, 68%, 17%)
HSVhsv(275, 81%, 29%)
CMYKcmyk(33.8%, 81.1%, 0%, 71%)
CIE-LABlab(12.36, 29.55, -29.74)
CIE-LCHlch(12.36, 41.92, 314.81°)
OKLaboklab(25.77% 0.0636 -0.0845)
OKLCHoklch(25.77% 0.106 307)
XYZxyz(2.6594, 1.4615, 6.6192)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E4A #274A0E
analogous
#130E4A #310E4A #4A0E45
triadic
#310E4A #4A310E #0E4A31
tetradic
#310E4A #4A130E #274A0E #0E454A
square
#310E4A #4A130E #274A0E #0E454A
split-complementary
#310E4A #454A0E #0E4A13
monochromatic
#11051A #11051A #310E4A #53187D #7521B1

Accessibility & contrast

On white

16.25
#310E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E4A
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E4A#FFFFFF#000000##FFFFFF
##310E4A1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2D1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310e4a;
/* rgb */ color: rgb(49, 14, 74);
/* oklch */ color: oklch(25.8% 0.106 307.0);
Tailwind
colors: {
  custom: {
    50: '#6c507d',
    500: '#310e4a',
    950: '#000000',
  },
}
SCSS
$custom: #310e4a;
$custom-light: #6c507d;
$custom-dark: #000000;
JSON
{
  "hex": "#310e4a",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 275,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2577,
    "c": 0.10573,
    "h": 307
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#310E4A
secondary
#53852F
accent
#EB3D85
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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