#311967#311967

#311967 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.127 H 290.7°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#311967
RGBrgb(49, 25, 103)
HSLhsl(258, 61%, 25%)
HSVhsv(258, 76%, 40%)
CMYKcmyk(52.4%, 75.7%, 0%, 59.6%)
CIE-LABlab(17.12, 32.05, -41.54)
CIE-LCHlch(17.12, 52.47, 307.65°)
OKLaboklab(29.97% 0.0451 -0.1192)
OKLCHoklch(29.97% 0.127 290.7)
XYZxyz(4.0617, 2.3273, 13.0645)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311967 #4F6719
analogous
#192867 #311967 #581967
triadic
#311967 #673119 #196731
tetradic
#311967 #671928 #4F6719 #196758
square
#311967 #671928 #4F6719 #196758
split-complementary
#311967 #675819 #286719
monochromatic
#0C0619 #1A0D36 #311967 #482598 #6031C9

Accessibility & contrast

On white

14.33
#311967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311967
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311967#FFFFFF#000000##FFFFFF
##3119671.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1F2D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311967;
/* rgb */ color: rgb(49, 25, 103);
/* oklch */ color: oklch(30.0% 0.127 290.7);
Tailwind
colors: {
  custom: {
    50: '#6f5893',
    500: '#311967',
    950: '#000000',
  },
}
SCSS
$custom: #311967;
$custom-light: #6f5893;
$custom-dark: #000000;
JSON
{
  "hex": "#311967",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 258.462,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29969,
    "c": 0.12746,
    "h": 290.7
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#311967
secondary
#809D3F
accent
#E444B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311967

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

Preview Lab → · Contrast checker → · Palette generator →

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