#3314B4#3314B4

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

Color values

HEX#3314B4
RGBrgb(51, 20, 180)
HSLhsl(252, 80%, 39%)
HSVhsv(252, 89%, 71%)
CMYKcmyk(71.7%, 88.9%, 0%, 29.4%)
CIE-LABlab(25.26, 57.04, -76.19)
CIE-LCHlch(25.26, 95.18, 306.82°)
OKLaboklab(38.19% 0.0255 -0.22)
OKLCHoklch(38.19% 0.222 276.6)
XYZxyz(9.8509, 4.4985, 43.5203)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3314B4 #95B414
analogous
#1445B4 #3314B4 #8314B4
triadic
#3314B4 #B43314 #14B433
tetradic
#3314B4 #B41445 #95B414 #14B483
square
#3314B4 #B41445 #95B414 #14B483
split-complementary
#3314B4 #B48314 #45B414
monochromatic
#140846 #230E7D #3314B4 #461FE6 #7356EC

Accessibility & contrast

On white

11.05
#3314B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3314B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3314B4
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3314B4#FFFFFF#000000##FFFFFF
##3314B41.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3314b4;
/* rgb */ color: rgb(51, 20, 180);
/* oklch */ color: oklch(38.2% 0.222 276.6);
Tailwind
colors: {
  custom: {
    50: '#805ccc',
    500: '#3314b4',
    950: '#000000',
  },
}
SCSS
$custom: #3314b4;
$custom-light: #805ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3314b4",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 180
  },
  "hsl": {
    "h": 251.625,
    "s": 80,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.22152,
    "h": 276.6
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#3314B4
secondary
#B7CF55
accent
#F631D0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3314B4

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

Preview Lab → · Contrast checker → · Palette generator →

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