#310E4D#310E4D

#310E4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 305.2°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#310E4D
RGBrgb(49, 14, 77)
HSLhsl(273, 69%, 18%)
HSVhsv(273, 82%, 30%)
CMYKcmyk(36.4%, 81.8%, 0%, 69.8%)
CIE-LABlab(12.63, 30.35, -31.39)
CIE-LCHlch(12.63, 43.66, 314.04°)
OKLaboklab(26.04% 0.0629 -0.0893)
OKLCHoklch(26.04% 0.109 305.2)
XYZxyz(2.7629, 1.5029, 7.1643)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E4D #2A4D0E
analogous
#110E4D #310E4D #4D0E49
triadic
#310E4D #4D310E #0E4D31
tetradic
#310E4D #4D110E #2A4D0E #0E494D
square
#310E4D #4D110E #2A4D0E #0E494D
split-complementary
#310E4D #494D0E #0E4D11
monochromatic
#10051A #10051A #310E4D #521781 #7321B5

Accessibility & contrast

On white

16.15
#310E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E4D
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E4D#FFFFFF#000000##FFFFFF
##310E4D1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2C1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310e4d;
/* rgb */ color: rgb(49, 14, 77);
/* oklch */ color: oklch(26.0% 0.109 305.2);
Tailwind
colors: {
  custom: {
    50: '#6d507f',
    500: '#310e4d',
    950: '#000000',
  },
}
SCSS
$custom: #310e4d;
$custom-light: #6d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#310e4d",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 273.333,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2604,
    "c": 0.10924,
    "h": 305.2
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#310E4D
secondary
#56882F
accent
#EC3C8A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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