#311654#311654

#311654 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.107 H 299.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#311654
RGBrgb(49, 22, 84)
HSLhsl(266, 58%, 21%)
HSVhsv(266, 74%, 33%)
CMYKcmyk(41.7%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.77, 28.02, -32.69)
CIE-LCHlch(14.77, 43.06, 310.61°)
OKLaboklab(27.76% 0.0522 -0.0932)
OKLCHoklch(27.76% 0.107 299.3)
XYZxyz(3.1534, 1.8668, 8.5800)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311654 #395416
analogous
#161A54 #311654 #501654
triadic
#311654 #543116 #165431
tetradic
#311654 #54161A #395416 #165450
square
#311654 #54161A #395416 #165450
split-complementary
#311654 #545016 #1A5416
monochromatic
#0E0618 #150924 #311654 #4D2384 #6A2FB5

Accessibility & contrast

On white

15.29
#311654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311654
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311654#FFFFFF#000000##FFFFFF
##3116541.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#292533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311654;
/* rgb */ color: rgb(49, 22, 84);
/* oklch */ color: oklch(27.8% 0.107 299.3);
Tailwind
colors: {
  custom: {
    50: '#6d5585',
    500: '#311654',
    950: '#000000',
  },
}
SCSS
$custom: #311654;
$custom-light: #6d5585;
$custom-dark: #000000;
JSON
{
  "hex": "#311654",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 266.129,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27759,
    "c": 0.10682,
    "h": 299.3
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#311654
secondary
#688B3A
accent
#E2469E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311654

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

Preview Lab → · Contrast checker → · Palette generator →

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