#332298#332298

#332298 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.179 H 279.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#332298
RGBrgb(51, 34, 152)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(66.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.05, 42.83, -61.23)
CIE-LCHlch(24.05, 74.72, 304.97°)
OKLaboklab(36.41% 0.0287 -0.1768)
OKLCHoklch(36.41% 0.179 279.2)
XYZxyz(7.6030, 4.1142, 30.0931)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332298 #879822
analogous
#224C98 #332298 #6E2298
triadic
#332298 #983322 #229833
tetradic
#332298 #98224C #879822 #22986E
square
#332298 #98224C #879822 #22986E
split-complementary
#332298 #986E22 #4C9822
monochromatic
#110C34 #221766 #332298 #442DCA #6D5ADA

Accessibility & contrast

On white

11.52
#332298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332298
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332298#FFFFFF#000000##FFFFFF
##3322981.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332298;
/* rgb */ color: rgb(51, 34, 152);
/* oklch */ color: oklch(36.4% 0.179 279.2);
Tailwind
colors: {
  custom: {
    50: '#7960b7',
    500: '#332298',
    950: '#000000',
  },
}
SCSS
$custom: #332298;
$custom-light: #7960b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332298",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 248.644,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.17911,
    "h": 279.2
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#332298
secondary
#B0BE57
accent
#E641CF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332298

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

Preview Lab → · Contrast checker → · Palette generator →

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