#311150#311150

#311150 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.109 H 302.7°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#311150
RGBrgb(49, 17, 80)
HSLhsl(270, 65%, 19%)
HSVhsv(270, 79%, 31%)
CMYKcmyk(38.8%, 78.8%, 0%, 68.6%)
CIE-LABlab(13.43, 29.65, -32.14)
CIE-LCHlch(13.43, 43.73, 312.69°)
OKLaboklab(26.69% 0.0589 -0.0916)
OKLCHoklch(26.69% 0.109 302.7)
XYZxyz(2.9147, 1.6330, 7.7495)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311150 #305011
analogous
#121150 #311150 #501150
triadic
#311150 #503111 #115031
tetradic
#311150 #501211 #305011 #115050
square
#311150 #501211 #305011 #115050
split-complementary
#311150 #505011 #115012
monochromatic
#0F0519 #12061E #311150 #501C82 #6F26B5

Accessibility & contrast

On white

15.83
#311150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311150
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311150#FFFFFF#000000##FFFFFF
##3111501.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2B202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311150;
/* rgb */ color: rgb(49, 17, 80);
/* oklch */ color: oklch(26.7% 0.109 302.7);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#311150',
    950: '#000000',
  },
}
SCSS
$custom: #311150;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#311150",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 270.476,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26693,
    "c": 0.10886,
    "h": 302.7
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#311150
secondary
#5E8933
accent
#E84093
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311150

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

Preview Lab → · Contrast checker → · Palette generator →

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