#311652#311652

#311652 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.104 H 300.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#311652
RGBrgb(49, 22, 82)
HSLhsl(267, 58%, 20%)
HSVhsv(267, 73%, 32%)
CMYKcmyk(40.2%, 73.2%, 0%, 67.8%)
CIE-LABlab(14.60, 27.43, -31.61)
CIE-LCHlch(14.60, 41.85, 310.96°)
OKLaboklab(27.58% 0.0525 -0.09)
OKLCHoklch(27.58% 0.104 300.3)
XYZxyz(3.0761, 1.8360, 8.1733)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311652 #375216
analogous
#161952 #311652 #4F1652
triadic
#311652 #523116 #165231
tetradic
#311652 #521619 #375216 #16524F
square
#311652 #521619 #375216 #16524F
split-complementary
#311652 #524F16 #195216
monochromatic
#0E0618 #140922 #311652 #4E2382 #6B30B3

Accessibility & contrast

On white

15.36
#311652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311652
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311652#FFFFFF#000000##FFFFFF
##3116521.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2A2432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311652;
/* rgb */ color: rgb(49, 22, 82);
/* oklch */ color: oklch(27.6% 0.104 300.3);
Tailwind
colors: {
  custom: {
    50: '#6c5583',
    500: '#311652',
    950: '#000000',
  },
}
SCSS
$custom: #311652;
$custom-light: #6c5583;
$custom-dark: #000000;
JSON
{
  "hex": "#311652",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 267,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27583,
    "c": 0.10421,
    "h": 300.3
  },
  "luminance": 0.01836
}

Semantic roles & 50–950 ramp

primary
#311652
secondary
#66893A
accent
#E1479C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311652

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

Preview Lab → · Contrast checker → · Palette generator →

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