#310948#310948

#310948 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.110 H 309.2°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#310948
RGBrgb(49, 9, 72)
HSLhsl(278, 78%, 16%)
HSVhsv(278, 88%, 28%)
CMYKcmyk(31.9%, 87.5%, 0%, 71.8%)
CIE-LABlab(11.39, 31.31, -29.93)
CIE-LCHlch(11.39, 43.31, 316.29°)
OKLaboklab(25.03% 0.0693 -0.085)
OKLCHoklch(25.03% 0.11 309.2)
XYZxyz(2.5338, 1.3163, 6.2502)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310948 #204809
analogous
#110948 #310948 #48093F
triadic
#310948 #483109 #094831
tetradic
#310948 #481109 #204809 #093F48
square
#310948 #481109 #204809 #093F48
split-complementary
#310948 #3F4809 #094811
monochromatic
#13031B #13031B #310948 #56107E #7B17B5

Accessibility & contrast

On white

16.62
#310948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310948
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310948#FFFFFF#000000##FFFFFF
##3109481.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#2D1929
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310948;
/* rgb */ color: rgb(49, 9, 72);
/* oklch */ color: oklch(25.0% 0.110 309.2);
Tailwind
colors: {
  custom: {
    50: '#6c4e7b',
    500: '#310948',
    950: '#000000',
  },
}
SCSS
$custom: #310948;
$custom-light: #6c4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310948",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 278.095,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25029,
    "c": 0.10967,
    "h": 309.2
  },
  "luminance": 0.01316
}

Semantic roles & 50–950 ramp

primary
#310948
secondary
#4A8527
accent
#F4347A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310948

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

Preview Lab → · Contrast checker → · Palette generator →

#310948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva