#310A49#310A49

#310A49 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.110 H 308.4°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#310A49
RGBrgb(49, 10, 73)
HSLhsl(277, 76%, 16%)
HSVhsv(277, 86%, 29%)
CMYKcmyk(32.9%, 86.3%, 0%, 71.4%)
CIE-LABlab(11.63, 31.13, -30.24)
CIE-LCHlch(11.63, 43.40, 315.83°)
OKLaboklab(25.23% 0.0681 -0.0859)
OKLCHoklch(25.23% 0.11 308.4)
XYZxyz(2.5775, 1.3511, 6.4270)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A49 #22490A
analogous
#120A49 #310A49 #490A42
triadic
#310A49 #49310A #0A4931
tetradic
#310A49 #49120A #22490A #0A4249
square
#310A49 #49120A #22490A #0A4249
split-complementary
#310A49 #42490A #0A4912
monochromatic
#12041B #12041B #310A49 #55117F #7919B5

Accessibility & contrast

On white

16.53
#310A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A49
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A49#FFFFFF#000000##FFFFFF
##310A491.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#2D1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310a49;
/* rgb */ color: rgb(49, 10, 73);
/* oklch */ color: oklch(25.2% 0.110 308.4);
Tailwind
colors: {
  custom: {
    50: '#6c4e7c',
    500: '#310a49',
    950: '#000000',
  },
}
SCSS
$custom: #310a49;
$custom-light: #6c4e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#310a49",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 73
  },
  "hsl": {
    "h": 277.143,
    "s": 75.904,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25226,
    "c": 0.10959,
    "h": 308.4
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#310A49
secondary
#4C8629
accent
#F2357D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310A49

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

Preview Lab → · Contrast checker → · Palette generator →

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