#311D64#311D64

#311D64 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.118 H 290.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#311D64
RGBrgb(49, 29, 100)
HSLhsl(257, 55%, 25%)
HSVhsv(257, 71%, 39%)
CMYKcmyk(51%, 71%, 0%, 60.8%)
CIE-LABlab(17.70, 28.75, -38.62)
CIE-LCHlch(17.70, 48.15, 306.66°)
OKLaboklab(30.3% 0.0414 -0.1107)
OKLCHoklch(30.3% 0.118 290.5)
XYZxyz(4.0056, 2.4516, 12.3163)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D64 #50641D
analogous
#1D2D64 #311D64 #541D64
triadic
#311D64 #64311D #1D6431
tetradic
#311D64 #641D2D #50641D #1D6454
square
#311D64 #641D2D #50641D #1D6454
split-complementary
#311D64 #64541D #2D641D
monochromatic
#0C0718 #1A0F35 #311D64 #482B93 #5F39C3

Accessibility & contrast

On white

14.09
#311D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D64
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D64#FFFFFF#000000##FFFFFF
##311D641.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#212E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311d64;
/* rgb */ color: rgb(49, 29, 100);
/* oklch */ color: oklch(30.3% 0.118 290.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a91',
    500: '#311d64',
    950: '#000000',
  },
}
SCSS
$custom: #311d64;
$custom-light: #6e5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#311d64",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 256.901,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30297,
    "c": 0.11816,
    "h": 290.5
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#311D64
secondary
#819944
accent
#DE49B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #311D64

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

Preview Lab → · Contrast checker → · Palette generator →

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