#311A88#311A88

#311A88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.168 H 282.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#311A88
RGBrgb(49, 26, 136)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(64%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.71, 41.73, -56.81)
CIE-LCHlch(20.71, 70.49, 306.30°)
OKLaboklab(33.52% 0.035 -0.1639)
OKLCHoklch(33.52% 0.168 282.1)
XYZxyz(6.0786, 3.1689, 23.5791)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A88 #71881A
analogous
#1A3A88 #311A88 #681A88
triadic
#311A88 #88311A #1A8831
tetradic
#311A88 #881A3A #71881A #1A8868
square
#311A88 #881A3A #71881A #1A8868
split-complementary
#311A88 #88681A #3A881A
monochromatic
#0C0621 #1E1055 #311A88 #4424BB #6242DB

Accessibility & contrast

On white

12.85
#311A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A88
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A88#FFFFFF#000000##FFFFFF
##311A881.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311a88;
/* rgb */ color: rgb(49, 26, 136);
/* oklch */ color: oklch(33.5% 0.168 282.1);
Tailwind
colors: {
  custom: {
    50: '#765aac',
    500: '#311a88',
    950: '#000000',
  },
}
SCSS
$custom: #311a88;
$custom-light: #765aac;
$custom-dark: #000000;
JSON
{
  "hex": "#311a88",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 252.545,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33517,
    "c": 0.16759,
    "h": 282.1
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#311A88
secondary
#A2BB43
accent
#EB3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311A88

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

Preview Lab → · Contrast checker → · Palette generator →

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