#311467#311467

#311467 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.133 H 291.9°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#311467
RGBrgb(49, 20, 103)
HSLhsl(261, 67%, 24%)
HSVhsv(261, 81%, 40%)
CMYKcmyk(52.4%, 80.6%, 0%, 59.6%)
CIE-LABlab(16.17, 34.75, -43.10)
CIE-LCHlch(16.17, 55.36, 308.87°)
OKLaboklab(29.3% 0.0498 -0.1238)
OKLCHoklch(29.3% 0.133 291.9)
XYZxyz(3.9643, 2.1324, 13.0321)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311467 #4A6714
analogous
#142167 #311467 #5B1467
triadic
#311467 #673114 #146731
tetradic
#311467 #671421 #4A6714 #14675B
square
#311467 #671421 #4A6714 #14675B
split-complementary
#311467 #675B14 #216714
monochromatic
#0C051A #190A34 #311467 #491E9A #6228CD

Accessibility & contrast

On white

14.72
#311467 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311467 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311467
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311467#FFFFFF#000000##FFFFFF
##3114671.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311467;
/* rgb */ color: rgb(49, 20, 103);
/* oklch */ color: oklch(29.3% 0.133 291.9);
Tailwind
colors: {
  custom: {
    50: '#705593',
    500: '#311467',
    950: '#000000',
  },
}
SCSS
$custom: #311467;
$custom-light: #705593;
$custom-dark: #000000;
JSON
{
  "hex": "#311467",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 103
  },
  "hsl": {
    "h": 260.964,
    "s": 67.48,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29298,
    "c": 0.13339,
    "h": 291.9
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#311467
secondary
#7B9E39
accent
#EA3DAE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311467

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

Preview Lab → · Contrast checker → · Palette generator →

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