#311985#311985

#311985 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.165 H 282.8°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#311985
RGBrgb(49, 25, 133)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 52%)
CMYKcmyk(63.2%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.21, 41.30, -55.75)
CIE-LCHlch(20.21, 69.38, 306.53°)
OKLaboklab(33.07% 0.0366 -0.1608)
OKLCHoklch(33.07% 0.165 282.8)
XYZxyz(5.8466, 3.0413, 22.4647)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311985 #6D8519
analogous
#193785 #311985 #671985
triadic
#311985 #853119 #198531
tetradic
#311985 #851937 #6D8519 #198567
square
#311985 #851937 #6D8519 #198567
split-complementary
#311985 #856719 #378519
monochromatic
#0B061E #1E0F51 #311985 #4423B9 #613EDB

Accessibility & contrast

On white

13.06
#311985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311985
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311985#FFFFFF#000000##FFFFFF
##3119851.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311985;
/* rgb */ color: rgb(49, 25, 133);
/* oklch */ color: oklch(33.1% 0.165 282.8);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#311985',
    950: '#000000',
  },
}
SCSS
$custom: #311985;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#311985",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 253.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33072,
    "c": 0.16489,
    "h": 282.8
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#311985
secondary
#9EB941
accent
#EB3DC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311985

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

Preview Lab → · Contrast checker → · Palette generator →

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