#311481#311481

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

Color values

HEX#311481
RGBrgb(49, 20, 129)
HSLhsl(256, 73%, 29%)
HSVhsv(256, 84%, 51%)
CMYKcmyk(62%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.96, 42.44, -55.28)
CIE-LCHlch(18.96, 69.69, 307.51°)
OKLaboklab(32.08% 0.0409 -0.1593)
OKLCHoklch(32.08% 0.165 284.4)
XYZxyz(5.4780, 2.7379, 21.0044)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311481 #648114
analogous
#142E81 #311481 #681481
triadic
#311481 #813114 #148131
tetradic
#311481 #81142E #648114 #148168
square
#311481 #81142E #648114 #148168
split-complementary
#311481 #816814 #2E8114
monochromatic
#0A041A #1D0C4C #311481 #451CB6 #5F30DF

Accessibility & contrast

On white

13.57
#311481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311481
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311481#FFFFFF#000000##FFFFFF
##3114811.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311481;
/* rgb */ color: rgb(49, 20, 129);
/* oklch */ color: oklch(32.1% 0.165 284.4);
Tailwind
colors: {
  custom: {
    50: '#7557a7',
    500: '#311481',
    950: '#000000',
  },
}
SCSS
$custom: #311481;
$custom-light: #7557a7;
$custom-dark: #000000;
JSON
{
  "hex": "#311481",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 255.963,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32077,
    "c": 0.16452,
    "h": 284.4
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#311481
secondary
#95B63B
accent
#F038BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311481

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

Preview Lab → · Contrast checker → · Palette generator →

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