#311885#311885

#311885 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.166 H 283.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#311885
RGBrgb(49, 24, 133)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 82%, 52%)
CMYKcmyk(63.2%, 82%, 0%, 47.8%)
CIE-LABlab(20.04, 41.79, -56.03)
CIE-LCHlch(20.04, 69.90, 306.72°)
OKLaboklab(32.96% 0.0372 -0.1616)
OKLCHoklch(32.96% 0.166 283)
XYZxyz(5.8256, 2.9993, 22.4577)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311885 #6C8518
analogous
#183685 #311885 #671885
triadic
#311885 #853118 #188531
tetradic
#311885 #851836 #6C8518 #188567
square
#311885 #851836 #6C8518 #188567
split-complementary
#311885 #856718 #368518
monochromatic
#0B051D #1E0F51 #311885 #4421B9 #603CDC

Accessibility & contrast

On white

13.13
#311885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311885
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311885#FFFFFF#000000##FFFFFF
##3118851.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311885;
/* rgb */ color: rgb(49, 24, 133);
/* oklch */ color: oklch(33.0% 0.166 283.0);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#311885',
    950: '#000000',
  },
}
SCSS
$custom: #311885;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#311885",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 253.761,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.1658,
    "h": 283
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#311885
secondary
#9DB940
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311885

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

Preview Lab → · Contrast checker → · Palette generator →

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