#311950#311950

#311950 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.097 H 300.3°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#311950
RGBrgb(49, 25, 80)
HSLhsl(266, 52%, 21%)
HSVhsv(266, 69%, 31%)
CMYKcmyk(38.8%, 68.8%, 0%, 68.6%)
CIE-LABlab(15.10, 25.04, -29.43)
CIE-LCHlch(15.10, 38.64, 310.38°)
OKLaboklab(27.89% 0.0488 -0.0836)
OKLCHoklch(27.89% 0.097 300.3)
XYZxyz(3.0619, 1.9274, 7.7986)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311950 #385019
analogous
#191C50 #311950 #4C1950
triadic
#311950 #503119 #195031
tetradic
#311950 #50191C #385019 #19504C
square
#311950 #50191C #385019 #19504C
split-complementary
#311950 #504C19 #1C5019
monochromatic
#0E0717 #140A21 #311950 #4E287F #6A36AD

Accessibility & contrast

On white

15.16
#311950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311950
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311950#FFFFFF#000000##FFFFFF
##3119501.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#04264F
Tritanopia (blue-blind)
#2A2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311950;
/* rgb */ color: rgb(49, 25, 80);
/* oklch */ color: oklch(27.9% 0.097 300.3);
Tailwind
colors: {
  custom: {
    50: '#6c5781',
    500: '#311950',
    950: '#000000',
  },
}
SCSS
$custom: #311950;
$custom-light: #6c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#311950",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 266.182,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27891,
    "c": 0.09685,
    "h": 300.3
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#311950
secondary
#67863E
accent
#DC4C9D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311950

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

Preview Lab → · Contrast checker → · Palette generator →

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