#332098#332098

#332098 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.181 H 279.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#332098
RGBrgb(51, 32, 152)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 60%)
CMYKcmyk(66.4%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.68, 43.87, -61.83)
CIE-LCHlch(23.68, 75.81, 305.35°)
OKLaboklab(36.16% 0.0299 -0.1785)
OKLCHoklch(36.16% 0.181 279.5)
XYZxyz(7.5474, 4.0032, 30.0746)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332098 #859820
analogous
#204998 #332098 #6F2098
triadic
#332098 #983320 #209833
tetradic
#332098 #982049 #859820 #20986F
square
#332098 #982049 #859820 #20986F
split-complementary
#332098 #986F20 #499820
monochromatic
#110B33 #221565 #332098 #442BCB #6C57DC

Accessibility & contrast

On white

11.66
#332098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#332098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332098
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332098#FFFFFF#000000##FFFFFF
##3320981.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332098;
/* rgb */ color: rgb(51, 32, 152);
/* oklch */ color: oklch(36.2% 0.181 279.5);
Tailwind
colors: {
  custom: {
    50: '#795fb8',
    500: '#332098',
    950: '#000000',
  },
}
SCSS
$custom: #332098;
$custom-light: #795fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#332098",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 249.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36155,
    "c": 0.18101,
    "h": 279.5
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#332098
secondary
#AEBF54
accent
#E840CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332098

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

Preview Lab → · Contrast checker → · Palette generator →

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