#310F4F#310F4F

#310F4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.110 H 303.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#310F4F
RGBrgb(49, 15, 79)
HSLhsl(272, 68%, 18%)
HSVhsv(272, 81%, 31%)
CMYKcmyk(38%, 81%, 0%, 69%)
CIE-LABlab(12.98, 30.40, -32.19)
CIE-LCHlch(12.98, 44.27, 313.36°)
OKLaboklab(26.35% 0.0613 -0.0917)
OKLCHoklch(26.35% 0.11 303.8)
XYZxyz(2.8484, 1.5591, 7.5465)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F4F #2D4F0F
analogous
#110F4F #310F4F #4F0F4D
triadic
#310F4F #4F310F #0F4F31
tetradic
#310F4F #4F110F #2D4F0F #0F4D4F
square
#310F4F #4F110F #2D4F0F #0F4D4F
split-complementary
#310F4F #4D4F0F #0F4F11
monochromatic
#10051A #11051C #310F4F #511982 #7123B6

Accessibility & contrast

On white

16.01
#310F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F4F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F4F#FFFFFF#000000##FFFFFF
##310F4F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310f4f;
/* rgb */ color: rgb(49, 15, 79);
/* oklch */ color: oklch(26.3% 0.110 303.8);
Tailwind
colors: {
  custom: {
    50: '#6d5181',
    500: '#310f4f',
    950: '#000000',
  },
}
SCSS
$custom: #310f4f;
$custom-light: #6d5181;
$custom-dark: #000000;
JSON
{
  "hex": "#310f4f",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 271.875,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26346,
    "c": 0.11031,
    "h": 303.8
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#310F4F
secondary
#5A8931
accent
#EB3D8E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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