#311360#311360

#311360 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.126 H 294.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#311360
RGBrgb(49, 19, 96)
HSLhsl(263, 67%, 23%)
HSVhsv(263, 80%, 38%)
CMYKcmyk(49%, 80.2%, 0%, 62.4%)
CIE-LABlab(15.29, 33.19, -39.90)
CIE-LCHlch(15.29, 51.90, 309.75°)
OKLaboklab(28.47% 0.0527 -0.1144)
OKLCHoklch(28.47% 0.126 294.8)
XYZxyz(3.6102, 1.9631, 11.2528)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311360 #426013
analogous
#131B60 #311360 #581360
triadic
#311360 #603113 #136031
tetradic
#311360 #60131B #426013 #136058
square
#311360 #60131B #426013 #136058
split-complementary
#311360 #605813 #1B6013
monochromatic
#0D051A #17092D #311360 #4B1D93 #6527C6

Accessibility & contrast

On white

15.08
#311360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311360 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311360
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311360#FFFFFF#000000##FFFFFF
##3113601.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#232838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311360;
/* rgb */ color: rgb(49, 19, 96);
/* oklch */ color: oklch(28.5% 0.126 294.8);
Tailwind
colors: {
  custom: {
    50: '#6f548e',
    500: '#311360',
    950: '#000000',
  },
}
SCSS
$custom: #311360;
$custom-light: #6f548e;
$custom-dark: #000000;
JSON
{
  "hex": "#311360",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 263.377,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28471,
    "c": 0.12594,
    "h": 294.8
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#311360
secondary
#729837
accent
#EA3EA7
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311360

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

Preview Lab → · Contrast checker → · Palette generator →

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