#311A4F#311A4F

#311A4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.094 H 300.4°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#311A4F
RGBrgb(49, 26, 79)
HSLhsl(266, 50%, 21%)
HSVhsv(266, 67%, 31%)
CMYKcmyk(38%, 67.1%, 0%, 69%)
CIE-LABlab(15.26, 24.11, -28.50)
CIE-LCHlch(15.26, 37.33, 310.23°)
OKLaboklab(27.98% 0.0475 -0.0809)
OKLCHoklch(27.98% 0.094 300.4)
XYZxyz(3.0470, 1.9562, 7.6127)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A4F #384F1A
analogous
#1A1D4F #311A4F #4B1A4F
triadic
#311A4F #4F311A #1A4F31
tetradic
#311A4F #4F1A1D #384F1A #1A4F4B
square
#311A4F #4F1A1D #384F1A #1A4F4B
split-complementary
#311A4F #4F4B1A #1D4F1A
monochromatic
#0E0817 #140B21 #311A4F #4E297D #6A38AB

Accessibility & contrast

On white

15.09
#311A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A4F
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A4F#FFFFFF#000000##FFFFFF
##311A4F1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#08264E
Tritanopia (blue-blind)
#2B2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311a4f;
/* rgb */ color: rgb(49, 26, 79);
/* oklch */ color: oklch(28.0% 0.094 300.4);
Tailwind
colors: {
  custom: {
    50: '#6c5881',
    500: '#311a4f',
    950: '#000000',
  },
}
SCSS
$custom: #311a4f;
$custom-light: #6c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#311a4f",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 266.038,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27978,
    "c": 0.09381,
    "h": 300.4
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#311A4F
secondary
#678540
accent
#DA4E9D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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