#311A50#311A50

#311A50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.095 H 299.9°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#311A50
RGBrgb(49, 26, 80)
HSLhsl(266, 51%, 21%)
HSVhsv(266, 68%, 31%)
CMYKcmyk(38.8%, 67.5%, 0%, 68.6%)
CIE-LABlab(15.33, 24.41, -29.06)
CIE-LCHlch(15.33, 37.95, 310.03°)
OKLaboklab(28.06% 0.0474 -0.0825)
OKLCHoklch(28.06% 0.095 299.9)
XYZxyz(3.0836, 1.9709, 7.8058)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A50 #39501A
analogous
#1A1E50 #311A50 #4C1A50
triadic
#311A50 #50311A #1A5031
tetradic
#311A50 #501A1E #39501A #1A504C
square
#311A50 #501A1E #39501A #1A504C
split-complementary
#311A50 #504C1A #1E501A
monochromatic
#0E0817 #150B22 #311A50 #4D297E #6A38AC

Accessibility & contrast

On white

15.06
#311A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A50
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A50#FFFFFF#000000##FFFFFF
##311A501.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a50;
/* rgb */ color: rgb(49, 26, 80);
/* oklch */ color: oklch(28.1% 0.095 299.9);
Tailwind
colors: {
  custom: {
    50: '#6c5881',
    500: '#311a50',
    950: '#000000',
  },
}
SCSS
$custom: #311a50;
$custom-light: #6c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#311a50",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 265.556,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2806,
    "c": 0.0952,
    "h": 299.9
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#311A50
secondary
#688640
accent
#DA4D9E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311A50

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

Preview Lab → · Contrast checker → · Palette generator →

#311A50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva