#311367#311367

#311367 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.134 H 292.1°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#311367
RGBrgb(49, 19, 103)
HSLhsl(261, 69%, 24%)
HSVhsv(261, 82%, 40%)
CMYKcmyk(52.4%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.99, 35.25, -43.39)
CIE-LCHlch(15.99, 55.90, 309.09°)
OKLaboklab(29.18% 0.0506 -0.1246)
OKLCHoklch(29.18% 0.134 292.1)
XYZxyz(3.9470, 2.0978, 13.0263)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311367 #496713
analogous
#131F67 #311367 #5B1367
triadic
#311367 #673113 #136731
tetradic
#311367 #67131F #496713 #13675B
square
#311367 #67131F #496713 #13675B
split-complementary
#311367 #675B13 #1F6713
monochromatic
#0C051A #180933 #311367 #4A1D9B #6226CE

Accessibility & contrast

On white

14.79
#311367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311367
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311367#FFFFFF#000000##FFFFFF
##3113671.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#1F2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311367;
/* rgb */ color: rgb(49, 19, 103);
/* oklch */ color: oklch(29.2% 0.134 292.1);
Tailwind
colors: {
  custom: {
    50: '#705593',
    500: '#311367',
    950: '#000000',
  },
}
SCSS
$custom: #311367;
$custom-light: #705593;
$custom-dark: #000000;
JSON
{
  "hex": "#311367",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 261.429,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29175,
    "c": 0.13448,
    "h": 292.1
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#311367
secondary
#7A9E37
accent
#EC3CAD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311367

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

Preview Lab → · Contrast checker → · Palette generator →

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