#310A47#310A47

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

Color values

HEX#310A47
RGBrgb(49, 10, 71)
HSLhsl(278, 75%, 16%)
HSVhsv(278, 86%, 28%)
CMYKcmyk(31%, 85.9%, 0%, 72.2%)
CIE-LABlab(11.45, 30.63, -29.13)
CIE-LCHlch(11.45, 42.27, 316.43°)
OKLaboklab(25.04% 0.0686 -0.0826)
OKLCHoklch(25.04% 0.107 309.7)
XYZxyz(2.5123, 1.3250, 6.0834)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A47 #20470A
analogous
#120A47 #310A47 #470A3E
triadic
#310A47 #47310A #0A4731
tetradic
#310A47 #47120A #20470A #0A3E47
square
#310A47 #47120A #20470A #0A3E47
split-complementary
#310A47 #3E470A #0A4712
monochromatic
#13041B #13041B #310A47 #56127D #7B19B2

Accessibility & contrast

On white

16.60
#310A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A47
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A47#FFFFFF#000000##FFFFFF
##310A471.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2E1928
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310a47;
/* rgb */ color: rgb(49, 10, 71);
/* oklch */ color: oklch(25.0% 0.107 309.7);
Tailwind
colors: {
  custom: {
    50: '#6c4e7b',
    500: '#310a47',
    950: '#000000',
  },
}
SCSS
$custom: #310a47;
$custom-light: #6c4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310a47",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 278.361,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25044,
    "c": 0.10738,
    "h": 309.7
  },
  "luminance": 0.01325
}

Semantic roles & 50–950 ramp

primary
#310A47
secondary
#4A8429
accent
#F2367A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310A47

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

Preview Lab → · Contrast checker → · Palette generator →

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