#332D98#332D98

#332D98 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.167 H 277.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#332D98
RGBrgb(51, 45, 152)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 60%)
CMYKcmyk(66.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(26.29, 36.54, -57.53)
CIE-LCHlch(26.29, 68.15, 302.42°)
OKLaboklab(38.01% 0.0214 -0.1661)
OKLCHoklch(38.01% 0.167 277.3)
XYZxyz(7.9693, 4.8469, 30.2153)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D98 #92982D
analogous
#2D5C98 #332D98 #682D98
triadic
#332D98 #98332D #2D9833
tetradic
#332D98 #982D5C #92982D #2D9868
square
#332D98 #982D5C #92982D #2D9868
split-complementary
#332D98 #98682D #5C982D
monochromatic
#13113A #231F69 #332D98 #443DC5 #726CD3

Accessibility & contrast

On white

10.66
#332D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#332D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D98
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D98#FFFFFF#000000##FFFFFF
##332D981.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332d98;
/* rgb */ color: rgb(51, 45, 152);
/* oklch */ color: oklch(38.0% 0.167 277.3);
Tailwind
colors: {
  custom: {
    50: '#7867b7',
    500: '#332d98',
    950: '#000000',
  },
}
SCSS
$custom: #332d98;
$custom-light: #7867b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332d98",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 243.364,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.16743,
    "h": 277.3
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#332D98
secondary
#B6BA66
accent
#DE4AD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332D98

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

Preview Lab → · Contrast checker → · Palette generator →

#332D98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva