#332798#332798

#332798 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.174 H 278.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#332798
RGBrgb(51, 39, 152)
HSLhsl(246, 59%, 37%)
HSVhsv(246, 74%, 60%)
CMYKcmyk(66.4%, 74.3%, 0%, 40.4%)
CIE-LABlab(25.02, 40.08, -59.63)
CIE-LCHlch(25.02, 71.85, 303.90°)
OKLaboklab(37.1% 0.0256 -0.1722)
OKLCHoklch(37.1% 0.174 278.4)
XYZxyz(7.7564, 4.4212, 30.1443)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332798 #8C9827
analogous
#275398 #332798 #6C2798
triadic
#332798 #983327 #279833
tetradic
#332798 #982753 #8C9827 #27986C
square
#332798 #982753 #8C9827 #27986C
split-complementary
#332798 #986C27 #539827
monochromatic
#120E37 #231B67 #332798 #4333C9 #6F63D7

Accessibility & contrast

On white

11.14
#332798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332798
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332798#FFFFFF#000000##FFFFFF
##3327981.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332798;
/* rgb */ color: rgb(51, 39, 152);
/* oklch */ color: oklch(37.1% 0.174 278.4);
Tailwind
colors: {
  custom: {
    50: '#7963b7',
    500: '#332798',
    950: '#000000',
  },
}
SCSS
$custom: #332798;
$custom-light: #7963b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332798",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 246.372,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37095,
    "c": 0.17406,
    "h": 278.4
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#332798
secondary
#B2BC5E
accent
#E245D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332798

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

Preview Lab → · Contrast checker → · Palette generator →

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