#3316B3#3316B3

#3316B3 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.2% C 0.219 H 276.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3316B3
RGBrgb(51, 22, 179)
HSLhsl(251, 78%, 39%)
HSVhsv(251, 88%, 70%)
CMYKcmyk(71.5%, 87.7%, 0%, 29.8%)
CIE-LABlab(25.36, 56.09, -75.43)
CIE-LCHlch(25.36, 94.00, 306.64°)
OKLaboklab(38.22% 0.0254 -0.2179)
OKLCHoklch(38.22% 0.219 276.6)
XYZxyz(9.7862, 4.5314, 42.9980)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3316B3 #96B316
analogous
#1648B3 #3316B3 #8216B3
triadic
#3316B3 #B33316 #16B333
tetradic
#3316B3 #B31648 #96B316 #16B382
square
#3316B3 #B31648 #96B316 #16B382
split-complementary
#3316B3 #B38216 #48B316
monochromatic
#140946 #230F7C #3316B3 #4622E4 #7459EB

Accessibility & contrast

On white

11.02
#3316B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3316B3
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3316B3#FFFFFF#000000##FFFFFF
##3316B31.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0035B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3316b3;
/* rgb */ color: rgb(51, 22, 179);
/* oklch */ color: oklch(38.2% 0.219 276.6);
Tailwind
colors: {
  custom: {
    50: '#805ccb',
    500: '#3316b3',
    950: '#000000',
  },
}
SCSS
$custom: #3316b3;
$custom-light: #805ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#3316b3",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 179
  },
  "hsl": {
    "h": 251.083,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.21934,
    "h": 276.6
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#3316B3
secondary
#B8CE57
accent
#F533D1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3316B3

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

Preview Lab → · Contrast checker → · Palette generator →

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