#311468#311468

#311468 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.135 H 291.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#311468
RGBrgb(49, 20, 104)
HSLhsl(261, 68%, 24%)
HSVhsv(261, 81%, 41%)
CMYKcmyk(52.9%, 80.8%, 0%, 59.2%)
CIE-LABlab(16.27, 35.04, -43.59)
CIE-LCHlch(16.27, 55.93, 308.79°)
OKLaboklab(29.4% 0.0494 -0.1252)
OKLCHoklch(29.4% 0.135 291.5)
XYZxyz(4.0148, 2.1526, 13.2980)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311468 #4B6814
analogous
#142168 #311468 #5B1468
triadic
#311468 #683114 #146831
tetradic
#311468 #681421 #4B6814 #14685B
square
#311468 #681421 #4B6814 #14685B
split-complementary
#311468 #685B14 #216814
monochromatic
#0C051A #190A35 #311468 #491E9B #6128CF

Accessibility & contrast

On white

14.68
#311468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311468
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311468#FFFFFF#000000##FFFFFF
##3114681.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#1E2B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311468;
/* rgb */ color: rgb(49, 20, 104);
/* oklch */ color: oklch(29.4% 0.135 291.5);
Tailwind
colors: {
  custom: {
    50: '#705594',
    500: '#311468',
    950: '#000000',
  },
}
SCSS
$custom: #311468;
$custom-light: #705594;
$custom-dark: #000000;
JSON
{
  "hex": "#311468",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 260.714,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29399,
    "c": 0.13461,
    "h": 291.5
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#311468
secondary
#7C9F39
accent
#EB3DAF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311468

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

Preview Lab → · Contrast checker → · Palette generator →

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