#311667#311667

#311667 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.131 H 291.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#311667
RGBrgb(49, 22, 103)
HSLhsl(260, 65%, 25%)
HSVhsv(260, 79%, 40%)
CMYKcmyk(52.4%, 78.6%, 0%, 59.6%)
CIE-LABlab(16.53, 33.71, -42.50)
CIE-LCHlch(16.53, 54.25, 308.41°)
OKLaboklab(29.55% 0.048 -0.122)
OKLCHoklch(29.55% 0.131 291.5)
XYZxyz(4.0010, 2.2059, 13.0443)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311667 #4C6716
analogous
#162467 #311667 #5A1667
triadic
#311667 #673116 #166731
tetradic
#311667 #671624 #4C6716 #16675A
square
#311667 #671624 #4C6716 #16675A
split-complementary
#311667 #675A16 #246716
monochromatic
#0C0519 #190B35 #311667 #492199 #612CCC

Accessibility & contrast

On white

14.57
#311667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311667
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311667#FFFFFF#000000##FFFFFF
##3116671.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1F2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311667;
/* rgb */ color: rgb(49, 22, 103);
/* oklch */ color: oklch(29.6% 0.131 291.5);
Tailwind
colors: {
  custom: {
    50: '#705693',
    500: '#311667',
    950: '#000000',
  },
}
SCSS
$custom: #311667;
$custom-light: #705693;
$custom-dark: #000000;
JSON
{
  "hex": "#311667",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 260,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29554,
    "c": 0.1311,
    "h": 291.5
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#311667
secondary
#7D9E3B
accent
#E840B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311667

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

Preview Lab → · Contrast checker → · Palette generator →

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