#311549#311549

#311549 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.094 H 305.7°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#311549
RGBrgb(49, 21, 73)
HSLhsl(272, 55%, 18%)
HSVhsv(272, 71%, 29%)
CMYKcmyk(32.9%, 71.2%, 0%, 71.4%)
CIE-LABlab(13.65, 25.44, -26.96)
CIE-LCHlch(13.65, 37.07, 313.34°)
OKLaboklab(26.67% 0.0549 -0.0763)
OKLCHoklch(26.67% 0.094 305.7)
XYZxyz(2.7371, 1.6704, 6.4803)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311549 #2D4915
analogous
#171549 #311549 #491547
triadic
#311549 #493115 #154931
tetradic
#311549 #491715 #2D4915 #154749
square
#311549 #491715 #2D4915 #154749
split-complementary
#311549 #474915 #154917
monochromatic
#100718 #110719 #311549 #512379 #7130A8

Accessibility & contrast

On white

15.74
#311549 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311549 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311549
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311549#FFFFFF#000000##FFFFFF
##3115491.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#082348
Tritanopia (blue-blind)
#2D202C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311549;
/* rgb */ color: rgb(49, 21, 73);
/* oklch */ color: oklch(26.7% 0.094 305.7);
Tailwind
colors: {
  custom: {
    50: '#6b547c',
    500: '#311549',
    950: '#000000',
  },
}
SCSS
$custom: #311549;
$custom-light: #6b547c;
$custom-dark: #000000;
JSON
{
  "hex": "#311549",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 73
  },
  "hsl": {
    "h": 272.308,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26667,
    "c": 0.09402,
    "h": 305.7
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#311549
secondary
#5A8139
accent
#DF498E
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #311549

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

Preview Lab → · Contrast checker → · Palette generator →

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