#311381#311381

#311381 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.165 H 284.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#311381
RGBrgb(49, 19, 129)
HSLhsl(256, 74%, 29%)
HSVhsv(256, 85%, 51%)
CMYKcmyk(62%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.81, 42.87, -55.53)
CIE-LCHlch(18.81, 70.15, 307.67°)
OKLaboklab(31.98% 0.0415 -0.16)
OKLCHoklch(31.98% 0.165 284.5)
XYZxyz(5.4607, 2.7033, 20.9987)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311381 #638113
analogous
#132C81 #311381 #681381
triadic
#311381 #813113 #138131
tetradic
#311381 #81132C #638113 #138168
square
#311381 #81132C #638113 #138168
split-complementary
#311381 #816813 #2C8113
monochromatic
#0A041B #1D0B4C #311381 #451BB6 #5F2EE0

Accessibility & contrast

On white

13.63
#311381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311381
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311381#FFFFFF#000000##FFFFFF
##3113811.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00354C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311381;
/* rgb */ color: rgb(49, 19, 129);
/* oklch */ color: oklch(32.0% 0.165 284.5);
Tailwind
colors: {
  custom: {
    50: '#7556a7',
    500: '#311381',
    950: '#000000',
  },
}
SCSS
$custom: #311381;
$custom-light: #7556a7;
$custom-dark: #000000;
JSON
{
  "hex": "#311381",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 256.364,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31975,
    "c": 0.16533,
    "h": 284.5
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#311381
secondary
#94B63A
accent
#F137BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311381

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

Preview Lab → · Contrast checker → · Palette generator →

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