#3316B4#3316B4

#3316B4 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.3% C 0.220 H 276.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3316B4
RGBrgb(51, 22, 180)
HSLhsl(251, 78%, 40%)
HSVhsv(251, 88%, 71%)
CMYKcmyk(71.7%, 87.8%, 0%, 29.4%)
CIE-LABlab(25.48, 56.37, -75.82)
CIE-LCHlch(25.48, 94.48, 306.63°)
OKLaboklab(38.34% 0.025 -0.219)
OKLCHoklch(38.34% 0.22 276.5)
XYZxyz(9.8877, 4.5720, 43.5326)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3316B4 #97B416
analogous
#1648B4 #3316B4 #8216B4
triadic
#3316B4 #B43316 #16B433
tetradic
#3316B4 #B41648 #97B416 #16B482
square
#3316B4 #B41648 #97B416 #16B482
split-complementary
#3316B4 #B48216 #48B416
monochromatic
#140947 #240F7D #3316B4 #4723E4 #745AEB

Accessibility & contrast

On white

10.97
#3316B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3316B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3316B4
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3316B4#FFFFFF#000000##FFFFFF
##3316B41.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3316b4;
/* rgb */ color: rgb(51, 22, 180);
/* oklch */ color: oklch(38.3% 0.220 276.5);
Tailwind
colors: {
  custom: {
    50: '#805ccc',
    500: '#3316b4',
    950: '#000000',
  },
}
SCSS
$custom: #3316b4;
$custom-light: #805ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3316b4",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 251.013,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38337,
    "c": 0.22043,
    "h": 276.5
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#3316B4
secondary
#B8CE58
accent
#F533D1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3316B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3316B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva