#332292#332292

#332292 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.172 H 280.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#332292
RGBrgb(51, 34, 146)
HSLhsl(249, 62%, 35%)
HSVhsv(249, 77%, 57%)
CMYKcmyk(65.1%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.41, 40.93, -58.57)
CIE-LCHlch(23.41, 71.45, 304.94°)
OKLaboklab(35.78% 0.0302 -0.169)
OKLCHoklch(35.78% 0.172 280.1)
XYZxyz(7.1239, 3.9226, 27.5703)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332292 #819222
analogous
#224992 #332292 #6B2292
triadic
#332292 #923322 #229233
tetradic
#332292 #922249 #819222 #22926B
square
#332292 #922249 #819222 #22926B
split-complementary
#332292 #926B22 #499222
monochromatic
#100B2F #221660 #332292 #442EC4 #6A57D8

Accessibility & contrast

On white

11.77
#332292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#332292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332292
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332292#FFFFFF#000000##FFFFFF
##3322921.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332292;
/* rgb */ color: rgb(51, 34, 146);
/* oklch */ color: oklch(35.8% 0.172 280.1);
Tailwind
colors: {
  custom: {
    50: '#7860b3',
    500: '#332292',
    950: '#000000',
  },
}
SCSS
$custom: #332292;
$custom-light: #7860b3;
$custom-dark: #000000;
JSON
{
  "hex": "#332292",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 249.107,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35776,
    "c": 0.17173,
    "h": 280.1
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#332292
secondary
#ACBC54
accent
#E543CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332292

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

Preview Lab → · Contrast checker → · Palette generator →

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