#310E4F#310E4F

#310E4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.112 H 304.0°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#310E4F
RGBrgb(49, 14, 79)
HSLhsl(272, 70%, 18%)
HSVhsv(272, 82%, 31%)
CMYKcmyk(38%, 82.3%, 0%, 69%)
CIE-LABlab(12.81, 30.89, -32.47)
CIE-LCHlch(12.81, 44.81, 313.57°)
OKLaboklab(26.22% 0.0624 -0.0925)
OKLCHoklch(26.22% 0.112 304)
XYZxyz(2.8346, 1.5316, 7.5419)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E4F #2C4F0E
analogous
#110E4F #310E4F #4F0E4C
triadic
#310E4F #4F310E #0E4F31
tetradic
#310E4F #4F110E #2C4F0E #0E4C4F
square
#310E4F #4F110E #2C4F0E #0E4C4F
split-complementary
#310E4F #4C4F0E #0E4F11
monochromatic
#10051A #11051B #310E4F #511783 #7120B7

Accessibility & contrast

On white

16.07
#310E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#310E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E4F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E4F#FFFFFF#000000##FFFFFF
##310E4F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2B1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310e4f;
/* rgb */ color: rgb(49, 14, 79);
/* oklch */ color: oklch(26.2% 0.112 304.0);
Tailwind
colors: {
  custom: {
    50: '#6d5181',
    500: '#310e4f',
    950: '#000000',
  },
}
SCSS
$custom: #310e4f;
$custom-light: #6d5181;
$custom-dark: #000000;
JSON
{
  "hex": "#310e4f",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 272.308,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26224,
    "c": 0.11158,
    "h": 304
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#310E4F
secondary
#598A2F
accent
#ED3B8D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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