#3321A8#3321A8

#3321A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 38.0% C 0.199 H 277.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3321A8
RGBrgb(51, 33, 168)
HSLhsl(248, 67%, 39%)
HSVhsv(248, 80%, 66%)
CMYKcmyk(69.6%, 80.4%, 0%, 34.1%)
CIE-LABlab(25.62, 48.30, -68.38)
CIE-LCHlch(25.62, 83.72, 305.23°)
OKLaboklab(38.02% 0.0249 -0.1976)
OKLCHoklch(38.02% 0.199 277.2)
XYZxyz(8.9747, 4.6179, 37.4566)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3321A8 #96A821
analogous
#2153A8 #3321A8 #7721A8
triadic
#3321A8 #A83321 #21A833
tetradic
#3321A8 #A82153 #96A821 #21A877
square
#3321A8 #A82153 #96A821 #21A877
split-complementary
#3321A8 #A87721 #53A821
monochromatic
#140D42 #231775 #3321A8 #4630D6 #7463E0

Accessibility & contrast

On white

10.92
#3321A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3321A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3321A8
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3321A8#FFFFFF#000000##FFFFFF
##3321A81.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3321a8;
/* rgb */ color: rgb(51, 33, 168);
/* oklch */ color: oklch(38.0% 0.199 277.2);
Tailwind
colors: {
  custom: {
    50: '#7d60c3',
    500: '#3321a8',
    950: '#000000',
  },
}
SCSS
$custom: #3321a8;
$custom-light: #7d60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3321a8",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 248,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38023,
    "c": 0.19917,
    "h": 277.2
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#3321A8
secondary
#B8C55F
accent
#EA3ED3
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3321A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3321A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva