#332773#332773

#332773 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.125 H 284.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#332773
RGBrgb(51, 39, 115)
HSLhsl(249, 49%, 30%)
HSVhsv(249, 66%, 45%)
CMYKcmyk(55.7%, 66.1%, 0%, 54.9%)
CIE-LABlab(21.55, 27.76, -42.09)
CIE-LCHlch(21.55, 50.42, 303.40°)
OKLaboklab(33.54% 0.0316 -0.1208)
OKLCHoklch(33.54% 0.125 284.6)
XYZxyz(5.1843, 3.3924, 16.5979)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332773 #677327
analogous
#274173 #332773 #592773
triadic
#332773 #733327 #277333
tetradic
#332773 #732741 #677327 #277359
square
#332773 #732741 #677327 #277359
split-complementary
#332773 #735927 #417327
monochromatic
#0A0818 #1F1845 #332773 #4736A1 #6351C4

Accessibility & contrast

On white

12.51
#332773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#332773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332773
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332773#FFFFFF#000000##FFFFFF
##3327731.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#183949
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332773;
/* rgb */ color: rgb(51, 39, 115);
/* oklch */ color: oklch(33.5% 0.125 284.6);
Tailwind
colors: {
  custom: {
    50: '#71629c',
    500: '#332773',
    950: '#000000',
  },
}
SCSS
$custom: #332773;
$custom-light: #71629c;
$custom-dark: #000000;
JSON
{
  "hex": "#332773",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 249.474,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33543,
    "c": 0.12485,
    "h": 284.6
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#332773
secondary
#98A550
accent
#D94FC3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332773

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

Preview Lab → · Contrast checker → · Palette generator →

#332773 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva