#311062#311062

#311062 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.132 H 294.6°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#311062
RGBrgb(49, 16, 98)
HSLhsl(264, 72%, 22%)
HSVhsv(264, 84%, 38%)
CMYKcmyk(50%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.98, 35.24, -41.74)
CIE-LCHlch(14.98, 54.63, 310.17°)
OKLaboklab(28.32% 0.0548 -0.1197)
OKLCHoklch(28.32% 0.132 294.6)
XYZxyz(3.6559, 1.9053, 11.7280)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311062 #416210
analogous
#101862 #311062 #5A1062
triadic
#311062 #623110 #106231
tetradic
#311062 #621018 #416210 #10625A
square
#311062 #621018 #416210 #10625A
split-complementary
#311062 #625A10 #186210
monochromatic
#0D041A #17072D #311062 #4B1997 #6621CB

Accessibility & contrast

On white

15.21
#311062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311062
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311062#FFFFFF#000000##FFFFFF
##3110621.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#222739
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311062;
/* rgb */ color: rgb(49, 16, 98);
/* oklch */ color: oklch(28.3% 0.132 294.6);
Tailwind
colors: {
  custom: {
    50: '#6f538f',
    500: '#311062',
    950: '#000000',
  },
}
SCSS
$custom: #311062;
$custom-light: #6f538f;
$custom-dark: #000000;
JSON
{
  "hex": "#311062",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 264.146,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28315,
    "c": 0.13167,
    "h": 294.6
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#311062
secondary
#719B33
accent
#EF39A6
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #311062

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

Preview Lab → · Contrast checker → · Palette generator →

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