#311A69#311A69

#311A69 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.129 H 289.8°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#311A69
RGBrgb(49, 26, 105)
HSLhsl(257, 60%, 26%)
HSVhsv(257, 75%, 41%)
CMYKcmyk(53.3%, 75.2%, 0%, 58.8%)
CIE-LABlab(17.51, 32.11, -42.21)
CIE-LCHlch(17.51, 53.03, 307.26°)
OKLaboklab(30.31% 0.0436 -0.1212)
OKLCHoklch(30.31% 0.129 289.8)
XYZxyz(4.1851, 2.4115, 13.6068)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A69 #52691A
analogous
#1A2B69 #311A69 #581A69
triadic
#311A69 #69311A #1A6931
tetradic
#311A69 #691A2B #52691A #1A6958
square
#311A69 #691A2B #52691A #1A6958
split-complementary
#311A69 #69581A #2B691A
monochromatic
#0B0619 #1A0E38 #311A69 #48269A #5F32CB

Accessibility & contrast

On white

14.17
#311A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311A69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A69
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A69#FFFFFF#000000##FFFFFF
##311A691.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a69;
/* rgb */ color: rgb(49, 26, 105);
/* oklch */ color: oklch(30.3% 0.129 289.8);
Tailwind
colors: {
  custom: {
    50: '#705995',
    500: '#311a69',
    950: '#000000',
  },
}
SCSS
$custom: #311a69;
$custom-light: #705995;
$custom-dark: #000000;
JSON
{
  "hex": "#311a69",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 105
  },
  "hsl": {
    "h": 257.468,
    "s": 60.305,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30308,
    "c": 0.1288,
    "h": 289.8
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#311A69
secondary
#839E40
accent
#E344B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311A69

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

Preview Lab → · Contrast checker → · Palette generator →

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