#310A45#310A45

#310A45 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.105 H 311.0°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#310A45
RGBrgb(49, 10, 69)
HSLhsl(280, 75%, 15%)
HSVhsv(280, 86%, 27%)
CMYKcmyk(29%, 85.5%, 0%, 72.9%)
CIE-LABlab(11.27, 30.12, -28.02)
CIE-LCHlch(11.27, 41.14, 317.07°)
OKLaboklab(24.87% 0.069 -0.0794)
OKLCHoklch(24.87% 0.105 311)
XYZxyz(2.4491, 1.2998, 5.7509)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A45 #1E450A
analogous
#130A45 #310A45 #450A3B
triadic
#310A45 #45310A #0A4531
tetradic
#310A45 #45130A #1E450A #0A3B45
square
#310A45 #45130A #1E450A #0A3B45
split-complementary
#310A45 #3B450A #0A4513
monochromatic
#13041B #13041B #310A45 #57127A #7D19B0

Accessibility & contrast

On white

16.67
#310A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A45
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A45#FFFFFF#000000##FFFFFF
##310A451.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#011F44
Tritanopia (blue-blind)
#2E1827
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310a45;
/* rgb */ color: rgb(49, 10, 69);
/* oklch */ color: oklch(24.9% 0.105 311.0);
Tailwind
colors: {
  custom: {
    50: '#6c4e79',
    500: '#310a45',
    950: '#000000',
  },
}
SCSS
$custom: #310a45;
$custom-light: #6c4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#310a45",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 279.661,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24865,
    "c": 0.10519,
    "h": 311
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#310A45
secondary
#478229
accent
#F13676
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310A45

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

Preview Lab → · Contrast checker → · Palette generator →

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