#332293#332293

#332293 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.173 H 280.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#332293
RGBrgb(51, 34, 147)
HSLhsl(249, 62%, 35%)
HSVhsv(249, 77%, 58%)
CMYKcmyk(65.3%, 76.9%, 0%, 42.4%)
CIE-LABlab(23.52, 41.24, -59.02)
CIE-LCHlch(23.52, 72.00, 304.95°)
OKLaboklab(35.88% 0.03 -0.1703)
OKLCHoklch(35.88% 0.173 280)
XYZxyz(7.2021, 3.9539, 27.9818)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332293 #829322
analogous
#224993 #332293 #6C2293
triadic
#332293 #933322 #229333
tetradic
#332293 #932249 #829322 #22936C
square
#332293 #932249 #829322 #22936C
split-complementary
#332293 #936C22 #499322
monochromatic
#110B30 #221761 #332293 #442DC5 #6B57D8

Accessibility & contrast

On white

11.73
#332293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332293
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332293#FFFFFF#000000##FFFFFF
##3322931.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332293;
/* rgb */ color: rgb(51, 34, 147);
/* oklch */ color: oklch(35.9% 0.173 280.0);
Tailwind
colors: {
  custom: {
    50: '#7860b4',
    500: '#332293',
    950: '#000000',
  },
}
SCSS
$custom: #332293;
$custom-light: #7860b4;
$custom-dark: #000000;
JSON
{
  "hex": "#332293",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 249.027,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35881,
    "c": 0.17297,
    "h": 280
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#332293
secondary
#ADBC55
accent
#E542CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332293

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

Preview Lab → · Contrast checker → · Palette generator →

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