#311969#311969

#311969 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.130 H 290.1°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#311969
RGBrgb(49, 25, 105)
HSLhsl(258, 62%, 25%)
HSVhsv(258, 76%, 41%)
CMYKcmyk(53.3%, 76.2%, 0%, 58.8%)
CIE-LABlab(17.31, 32.67, -42.54)
CIE-LCHlch(17.31, 53.64, 307.52°)
OKLaboklab(30.16% 0.0446 -0.1221)
OKLCHoklch(30.16% 0.13 290.1)
XYZxyz(4.1633, 2.3680, 13.5996)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311969 #516919
analogous
#192969 #311969 #591969
triadic
#311969 #693119 #196931
tetradic
#311969 #691929 #516919 #196959
square
#311969 #691929 #516919 #196959
split-complementary
#311969 #695919 #296919
monochromatic
#0C0619 #1A0D38 #311969 #48259A #5F31CC

Accessibility & contrast

On white

14.25
#311969 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311969
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311969#FFFFFF#000000##FFFFFF
##3119691.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6B
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#1D2E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311969;
/* rgb */ color: rgb(49, 25, 105);
/* oklch */ color: oklch(30.2% 0.130 290.1);
Tailwind
colors: {
  custom: {
    50: '#705895',
    500: '#311969',
    950: '#000000',
  },
}
SCSS
$custom: #311969;
$custom-light: #705895;
$custom-dark: #000000;
JSON
{
  "hex": "#311969",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 105
  },
  "hsl": {
    "h": 258,
    "s": 61.538,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30164,
    "c": 0.13004,
    "h": 290.1
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#311969
secondary
#829F3F
accent
#E543B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311969

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

Preview Lab → · Contrast checker → · Palette generator →

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