#310C4B#310C4B

#310C4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 306.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#310C4B
RGBrgb(49, 12, 75)
HSLhsl(275, 72%, 17%)
HSVhsv(275, 84%, 29%)
CMYKcmyk(34.7%, 84%, 0%, 70.6%)
CIE-LABlab(12.12, 30.76, -30.83)
CIE-LCHlch(12.12, 43.56, 314.93°)
OKLaboklab(25.62% 0.0655 -0.0877)
OKLCHoklch(25.62% 0.109 306.8)
XYZxyz(2.6678, 1.4239, 6.7896)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4B #264B0C
analogous
#120C4B #310C4B #4B0C46
triadic
#310C4B #4B310C #0C4B31
tetradic
#310C4B #4B120C #264B0C #0C464B
square
#310C4B #4B120C #264B0C #0C464B
split-complementary
#310C4B #464B0C #0C4B12
monochromatic
#11041A #11041A #310C4B #531480 #761DB5

Accessibility & contrast

On white

16.34
#310C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4B
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4B#FFFFFF#000000##FFFFFF
##310C4B1.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310c4b;
/* rgb */ color: rgb(49, 12, 75);
/* oklch */ color: oklch(25.6% 0.109 306.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f7e',
    500: '#310c4b',
    950: '#000000',
  },
}
SCSS
$custom: #310c4b;
$custom-light: #6c4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4b",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 275.238,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25625,
    "c": 0.10945,
    "h": 306.8
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#310C4B
secondary
#51872C
accent
#EF3984
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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