#310E4B#310E4B

#310E4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.107 H 306.3°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#310E4B
RGBrgb(49, 14, 75)
HSLhsl(274, 69%, 17%)
HSVhsv(274, 81%, 29%)
CMYKcmyk(34.7%, 81.3%, 0%, 70.6%)
CIE-LABlab(12.45, 29.81, -30.29)
CIE-LCHlch(12.45, 42.50, 314.54°)
OKLaboklab(25.86% 0.0634 -0.0861)
OKLCHoklch(25.86% 0.107 306.3)
XYZxyz(2.6934, 1.4751, 6.7981)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E4B #284B0E
analogous
#120E4B #310E4B #4B0E47
triadic
#310E4B #4B310E #0E4B31
tetradic
#310E4B #4B120E #284B0E #0E474B
square
#310E4B #4B120E #284B0E #0E474B
split-complementary
#310E4B #474B0E #0E4B12
monochromatic
#11051A #11051A #310E4B #53187F #7421B2

Accessibility & contrast

On white

16.22
#310E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310E4B
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E4B#FFFFFF#000000##FFFFFF
##310E4B1.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2C1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310e4b;
/* rgb */ color: rgb(49, 14, 75);
/* oklch */ color: oklch(25.9% 0.107 306.3);
Tailwind
colors: {
  custom: {
    50: '#6c507e',
    500: '#310e4b',
    950: '#000000',
  },
}
SCSS
$custom: #310e4b;
$custom-light: #6c507e;
$custom-dark: #000000;
JSON
{
  "hex": "#310e4b",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 274.426,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25859,
    "c": 0.1069,
    "h": 306.3
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#310E4B
secondary
#54862F
accent
#EB3C87
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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