#311668#311668

#311668 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.132 H 291.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#311668
RGBrgb(49, 22, 104)
HSLhsl(260, 65%, 25%)
HSVhsv(260, 79%, 41%)
CMYKcmyk(52.9%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.63, 34.01, -43.00)
CIE-LCHlch(16.63, 54.82, 308.34°)
OKLaboklab(29.65% 0.0477 -0.1235)
OKLCHoklch(29.65% 0.132 291.1)
XYZxyz(4.0515, 2.2261, 13.3102)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311668 #4D6816
analogous
#162468 #311668 #5A1668
triadic
#311668 #683116 #166831
tetradic
#311668 #681624 #4D6816 #16685A
square
#311668 #681624 #4D6816 #16685A
split-complementary
#311668 #685A16 #246816
monochromatic
#0C0519 #190B35 #311668 #49219B #612BCD

Accessibility & contrast

On white

14.53
#311668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311668
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311668#FFFFFF#000000##FFFFFF
##3116681.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311668;
/* rgb */ color: rgb(49, 22, 104);
/* oklch */ color: oklch(29.7% 0.132 291.1);
Tailwind
colors: {
  custom: {
    50: '#705694',
    500: '#311668',
    950: '#000000',
  },
}
SCSS
$custom: #311668;
$custom-light: #705694;
$custom-dark: #000000;
JSON
{
  "hex": "#311668",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 259.756,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29654,
    "c": 0.13235,
    "h": 291.1
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#311668
secondary
#7E9F3B
accent
#E840B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311668

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

Preview Lab → · Contrast checker → · Palette generator →

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