#311463#311463

#311463 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.128 H 293.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#311463
RGBrgb(49, 20, 99)
HSLhsl(262, 66%, 23%)
HSVhsv(262, 80%, 39%)
CMYKcmyk(50.5%, 79.8%, 0%, 61.2%)
CIE-LABlab(15.77, 33.56, -41.12)
CIE-LCHlch(15.77, 53.07, 309.22°)
OKLaboklab(28.9% 0.0509 -0.1179)
OKLCHoklch(28.9% 0.128 293.4)
XYZxyz(3.7683, 2.0540, 11.9999)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311463 #466314
analogous
#141E63 #311463 #581463
triadic
#311463 #633114 #146331
tetradic
#311463 #63141E #466314 #146358
square
#311463 #63141E #466314 #146358
split-complementary
#311463 #635814 #1E6314
monochromatic
#0D0519 #180A30 #311463 #4A1E96 #6329C9

Accessibility & contrast

On white

14.89
#311463 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311463 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311463
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311463#FFFFFF#000000##FFFFFF
##3114631.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#22293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311463;
/* rgb */ color: rgb(49, 20, 99);
/* oklch */ color: oklch(28.9% 0.128 293.4);
Tailwind
colors: {
  custom: {
    50: '#6f5590',
    500: '#311463',
    950: '#000000',
  },
}
SCSS
$custom: #311463;
$custom-light: #6f5590;
$custom-dark: #000000;
JSON
{
  "hex": "#311463",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 99
  },
  "hsl": {
    "h": 262.025,
    "s": 66.387,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28896,
    "c": 0.12846,
    "h": 293.4
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#311463
secondary
#769A38
accent
#E93EAB
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311463

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

Preview Lab → · Contrast checker → · Palette generator →

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