#310C44#310C44

#310C44 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.102 H 311.3°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#310C44
RGBrgb(49, 12, 68)
HSLhsl(280, 70%, 16%)
HSVhsv(280, 82%, 27%)
CMYKcmyk(27.9%, 82.4%, 0%, 73.3%)
CIE-LABlab(11.51, 28.96, -26.94)
CIE-LCHlch(11.51, 39.55, 317.08°)
OKLaboklab(25% 0.067 -0.0762)
OKLCHoklch(25% 0.102 311.3)
XYZxyz(2.4413, 1.3333, 5.5965)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C44 #1F440C
analogous
#150C44 #310C44 #440C3B
triadic
#310C44 #44310C #0C4431
tetradic
#310C44 #44150C #1F440C #0C3B44
square
#310C44 #44150C #1F440C #0C3B44
split-complementary
#310C44 #3B440C #0C4415
monochromatic
#13051A #13051A #310C44 #561578 #7C1EAC

Accessibility & contrast

On white

16.58
#310C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#310C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C44
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C44#FFFFFF#000000##FFFFFF
##310C441.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D46
Deuteranopia (green-blind)
#041F43
Tritanopia (blue-blind)
#2F1927
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c44;
/* rgb */ color: rgb(49, 12, 68);
/* oklch */ color: oklch(25.0% 0.102 311.3);
Tailwind
colors: {
  custom: {
    50: '#6c4f78',
    500: '#310c44',
    950: '#000000',
  },
}
SCSS
$custom: #310c44;
$custom-light: #6c4f78;
$custom-dark: #000000;
JSON
{
  "hex": "#310c44",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 279.643,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25003,
    "c": 0.10151,
    "h": 311.3
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#310C44
secondary
#48802C
accent
#ED3B77
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C44

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

Preview Lab → · Contrast checker → · Palette generator →

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