#332873#332873

#332873 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.123 H 284.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#332873
RGBrgb(51, 40, 115)
HSLhsl(249, 48%, 30%)
HSVhsv(249, 65%, 45%)
CMYKcmyk(55.7%, 65.2%, 0%, 54.9%)
CIE-LABlab(21.80, 27.12, -41.70)
CIE-LCHlch(21.80, 49.74, 303.04°)
OKLaboklab(33.72% 0.0305 -0.1196)
OKLCHoklch(33.72% 0.123 284.3)
XYZxyz(5.2176, 3.4589, 16.6090)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332873 #687328
analogous
#284273 #332873 #582873
triadic
#332873 #733328 #287333
tetradic
#332873 #732842 #687328 #287358
square
#332873 #732842 #687328 #287358
split-complementary
#332873 #735828 #427328
monochromatic
#0B0818 #1F1846 #332873 #4738A0 #6352C3

Accessibility & contrast

On white

12.41
#332873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#332873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332873
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332873#FFFFFF#000000##FFFFFF
##3328731.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#183A49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332873;
/* rgb */ color: rgb(51, 40, 115);
/* oklch */ color: oklch(33.7% 0.123 284.3);
Tailwind
colors: {
  custom: {
    50: '#71629c',
    500: '#332873',
    950: '#000000',
  },
}
SCSS
$custom: #332873;
$custom-light: #71629c;
$custom-dark: #000000;
JSON
{
  "hex": "#332873",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 248.8,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.12344,
    "h": 284.3
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#332873
secondary
#99A552
accent
#D850C4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332873

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

Preview Lab → · Contrast checker → · Palette generator →

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