#311149#311149

#311149 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.100 H 306.9°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#311149
RGBrgb(49, 17, 73)
HSLhsl(274, 62%, 18%)
HSVhsv(274, 77%, 29%)
CMYKcmyk(32.9%, 76.7%, 0%, 71.4%)
CIE-LABlab(12.83, 27.72, -28.29)
CIE-LCHlch(12.83, 39.61, 314.42°)
OKLaboklab(26.08% 0.0602 -0.0802)
OKLCHoklch(26.08% 0.1 306.9)
XYZxyz(2.6694, 1.5349, 6.4577)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311149 #294911
analogous
#151149 #311149 #491145
triadic
#311149 #493111 #114931
tetradic
#311149 #491511 #294911 #114549
square
#311149 #491511 #294911 #114549
split-complementary
#311149 #454911 #114915
monochromatic
#110619 #110619 #311149 #521D7B #7428AC

Accessibility & contrast

On white

16.07
#311149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#311149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311149
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311149#FFFFFF#000000##FFFFFF
##3111491.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#032148
Tritanopia (blue-blind)
#2D1E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311149;
/* rgb */ color: rgb(49, 17, 73);
/* oklch */ color: oklch(26.1% 0.100 306.9);
Tailwind
colors: {
  custom: {
    50: '#6c527c',
    500: '#311149',
    950: '#000000',
  },
}
SCSS
$custom: #311149;
$custom-light: #6c527c;
$custom-dark: #000000;
JSON
{
  "hex": "#311149",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 274.286,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26075,
    "c": 0.10029,
    "h": 306.9
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#311149
secondary
#558233
accent
#E54388
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311149

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

Preview Lab → · Contrast checker → · Palette generator →

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