#311368#311368

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

Color values

HEX#311368
RGBrgb(49, 19, 104)
HSLhsl(261, 69%, 24%)
HSVhsv(261, 82%, 41%)
CMYKcmyk(52.9%, 81.7%, 0%, 59.2%)
CIE-LABlab(16.09, 35.54, -43.88)
CIE-LCHlch(16.09, 56.47, 309.01°)
OKLaboklab(29.28% 0.0503 -0.126)
OKLCHoklch(29.28% 0.136 291.8)
XYZxyz(3.9975, 2.1180, 13.2922)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311368 #4A6813
analogous
#132068 #311368 #5C1368
triadic
#311368 #683113 #136831
tetradic
#311368 #681320 #4A6813 #13685C
square
#311368 #681320 #4A6813 #13685C
split-complementary
#311368 #685C13 #206813
monochromatic
#0C051A #190A34 #311368 #491C9C #6226CF

Accessibility & contrast

On white

14.75
#311368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311368
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311368#FFFFFF#000000##FFFFFF
##3113681.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#1E2B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311368;
/* rgb */ color: rgb(49, 19, 104);
/* oklch */ color: oklch(29.3% 0.136 291.8);
Tailwind
colors: {
  custom: {
    50: '#705594',
    500: '#311368',
    950: '#000000',
  },
}
SCSS
$custom: #311368;
$custom-light: #705594;
$custom-dark: #000000;
JSON
{
  "hex": "#311368",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 261.176,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29278,
    "c": 0.13568,
    "h": 291.8
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#311368
secondary
#7B9F37
accent
#EC3CAE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311368

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

Preview Lab → · Contrast checker → · Palette generator →

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