#311447#311447

#311447 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.093 H 307.3°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#311447
RGBrgb(49, 20, 71)
HSLhsl(274, 56%, 18%)
HSVhsv(274, 72%, 28%)
CMYKcmyk(31%, 71.8%, 0%, 72.2%)
CIE-LABlab(13.28, 25.48, -26.17)
CIE-LCHlch(13.28, 36.53, 314.23°)
OKLaboklab(26.35% 0.0564 -0.074)
OKLCHoklch(26.35% 0.093 307.3)
XYZxyz(2.6539, 1.6082, 6.1306)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311447 #2A4714
analogous
#181447 #311447 #471443
triadic
#311447 #473114 #144731
tetradic
#311447 #471814 #2A4714 #144347
square
#311447 #471814 #2A4714 #144347
split-complementary
#311447 #434714 #144718
monochromatic
#100718 #100718 #311447 #522177 #732FA6

Accessibility & contrast

On white

15.89
#311447 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311447 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311447
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311447#FFFFFF#000000##FFFFFF
##3114471.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#0A2246
Tritanopia (blue-blind)
#2D1F2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311447;
/* rgb */ color: rgb(49, 20, 71);
/* oklch */ color: oklch(26.3% 0.093 307.3);
Tailwind
colors: {
  custom: {
    50: '#6b547a',
    500: '#311447',
    950: '#000000',
  },
}
SCSS
$custom: #311447;
$custom-light: #6b547a;
$custom-dark: #000000;
JSON
{
  "hex": "#311447",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 71
  },
  "hsl": {
    "h": 274.118,
    "s": 56.044,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26348,
    "c": 0.09308,
    "h": 307.3
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#311447
secondary
#567F38
accent
#DF488A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311447

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

Preview Lab → · Contrast checker → · Palette generator →

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