#310C4E#310C4E

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

Color values

HEX#310C4E
RGBrgb(49, 12, 78)
HSLhsl(274, 73%, 18%)
HSVhsv(274, 85%, 31%)
CMYKcmyk(37.2%, 84.6%, 0%, 69.4%)
CIE-LABlab(12.39, 31.55, -32.46)
CIE-LCHlch(12.39, 45.27, 314.19°)
OKLaboklab(25.9% 0.0647 -0.0924)
OKLCHoklch(25.9% 0.113 305)
XYZxyz(2.7729, 1.4660, 7.3431)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4E #294E0C
analogous
#100C4E #310C4E #4E0C4A
triadic
#310C4E #4E310C #0C4E31
tetradic
#310C4E #4E100C #294E0C #0C4A4E
square
#310C4E #4E100C #294E0C #0C4A4E
split-complementary
#310C4E #4A4E0C #0C4E10
monochromatic
#11041B #11041B #310C4E #521483 #741CB8

Accessibility & contrast

On white

16.24
#310C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4E
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4E#FFFFFF#000000##FFFFFF
##310C4E1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#2B1D2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310c4e;
/* rgb */ color: rgb(49, 12, 78);
/* oklch */ color: oklch(25.9% 0.113 305.0);
Tailwind
colors: {
  custom: {
    50: '#6d5080',
    500: '#310c4e',
    950: '#000000',
  },
}
SCSS
$custom: #310c4e;
$custom-light: #6d5080;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4e",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 273.636,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25903,
    "c": 0.11285,
    "h": 305
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#310C4E
secondary
#558A2C
accent
#F03889
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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