#3317B3#3317B3

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

Color values

HEX#3317B3
RGBrgb(51, 23, 179)
HSLhsl(251, 77%, 40%)
HSVhsv(251, 87%, 70%)
CMYKcmyk(71.5%, 87.2%, 0%, 29.8%)
CIE-LABlab(25.47, 55.74, -75.23)
CIE-LCHlch(25.47, 93.63, 306.53°)
OKLaboklab(38.3% 0.0251 -0.2173)
OKLCHoklch(38.3% 0.219 276.6)
XYZxyz(9.8057, 4.5703, 43.0045)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3317B3 #97B317
analogous
#1749B3 #3317B3 #8117B3
triadic
#3317B3 #B33317 #17B333
tetradic
#3317B3 #B31749 #97B317 #17B381
square
#3317B3 #B31749 #97B317 #17B381
split-complementary
#3317B3 #B38117 #49B317
monochromatic
#140947 #24107D #3317B3 #4724E3 #745BEA

Accessibility & contrast

On white

10.97
#3317B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3317B3
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3317B3#FFFFFF#000000##FFFFFF
##3317B31.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)
#0042B7
Deuteranopia (green-blind)
#0036B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3317b3;
/* rgb */ color: rgb(51, 23, 179);
/* oklch */ color: oklch(38.3% 0.219 276.6);
Tailwind
colors: {
  custom: {
    50: '#805dcb',
    500: '#3317b3',
    950: '#000000',
  },
}
SCSS
$custom: #3317b3;
$custom-light: #805dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3317b3",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 250.769,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38298,
    "c": 0.21875,
    "h": 276.6
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#3317B3
secondary
#B8CD58
accent
#F434D1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3317B3

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

Preview Lab → · Contrast checker → · Palette generator →

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