#311A4E#311A4E

#311A4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.092 H 301.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#311A4E
RGBrgb(49, 26, 78)
HSLhsl(267, 50%, 20%)
HSVhsv(267, 67%, 31%)
CMYKcmyk(37.2%, 66.7%, 0%, 69.4%)
CIE-LABlab(15.18, 23.81, -27.94)
CIE-LCHlch(15.18, 36.71, 310.44°)
OKLaboklab(27.9% 0.0475 -0.0793)
OKLCHoklch(27.9% 0.092 301)
XYZxyz(3.0108, 1.9418, 7.4224)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A4E #374E1A
analogous
#1A1D4E #311A4E #4B1A4E
triadic
#311A4E #4E311A #1A4E31
tetradic
#311A4E #4E1A1D #374E1A #1A4E4B
square
#311A4E #4E1A1D #374E1A #1A4E4B
split-complementary
#311A4E #4E4B1A #1D4E1A
monochromatic
#0E0817 #140B20 #311A4E #4E297C #6B39AA

Accessibility & contrast

On white

15.13
#311A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A4E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A4E#FFFFFF#000000##FFFFFF
##311A4E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#09264D
Tritanopia (blue-blind)
#2B2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311a4e;
/* rgb */ color: rgb(49, 26, 78);
/* oklch */ color: oklch(27.9% 0.092 301.0);
Tailwind
colors: {
  custom: {
    50: '#6c5880',
    500: '#311a4e',
    950: '#000000',
  },
}
SCSS
$custom: #311a4e;
$custom-light: #6c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#311a4e",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 266.538,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27898,
    "c": 0.09242,
    "h": 301
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#311A4E
secondary
#668440
accent
#DA4E9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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