#310A4C#310A4C

#310A4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.113 H 306.5°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#310A4C
RGBrgb(49, 10, 76)
HSLhsl(275, 77%, 17%)
HSVhsv(275, 87%, 30%)
CMYKcmyk(35.5%, 86.8%, 0%, 70.2%)
CIE-LABlab(11.90, 31.90, -31.87)
CIE-LCHlch(11.90, 45.09, 315.02°)
OKLaboklab(25.5% 0.0672 -0.0907)
OKLCHoklch(25.5% 0.113 306.5)
XYZxyz(2.6794, 1.3919, 6.9636)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A4C #254C0A
analogous
#100A4C #310A4C #4C0A46
triadic
#310A4C #4C310A #0A4C31
tetradic
#310A4C #4C100A #254C0A #0A464C
square
#310A4C #4C100A #254C0A #0A464C
split-complementary
#310A4C #464C0A #0A4C10
monochromatic
#11041B #11041B #310A4C #541182 #7718B8

Accessibility & contrast

On white

16.43
#310A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A4C
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A4C#FFFFFF#000000##FFFFFF
##310A4C1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2C1B2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310a4c;
/* rgb */ color: rgb(49, 10, 76);
/* oklch */ color: oklch(25.5% 0.113 306.5);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#310a4c',
    950: '#000000',
  },
}
SCSS
$custom: #310a4c;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#310a4c",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 275.455,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25504,
    "c": 0.1129,
    "h": 306.5
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#310A4C
secondary
#508929
accent
#F33583
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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