#311893#311893

#311893 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.182 H 280.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#311893
RGBrgb(49, 24, 147)
HSLhsl(252, 72%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(66.7%, 83.7%, 0%, 42.4%)
CIE-LABlab(21.62, 45.98, -62.15)
CIE-LCHlch(21.62, 77.31, 306.49°)
OKLaboklab(34.52% 0.0325 -0.1794)
OKLCHoklch(34.52% 0.182 280.3)
XYZxyz(6.8580, 3.4123, 27.8953)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311893 #7A9318
analogous
#183C93 #311893 #6E1893
triadic
#311893 #933118 #189331
tetradic
#311893 #93183C #7A9318 #18936E
square
#311893 #93183C #7A9318 #18936E
split-complementary
#311893 #936E18 #3C9318
monochromatic
#0E072A #1F0F5E #311893 #4321C8 #6445E1

Accessibility & contrast

On white

12.48
#311893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#311893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311893
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311893#FFFFFF#000000##FFFFFF
##3118931.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311893;
/* rgb */ color: rgb(49, 24, 147);
/* oklch */ color: oklch(34.5% 0.182 280.3);
Tailwind
colors: {
  custom: {
    50: '#785ab4',
    500: '#311893',
    950: '#000000',
  },
}
SCSS
$custom: #311893;
$custom-light: #785ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#311893",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 252.195,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.18234,
    "h": 280.3
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#311893
secondary
#A8C245
accent
#EF39CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311893

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

Preview Lab → · Contrast checker → · Palette generator →

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