#332E98#332E98

#332E98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.166 H 277.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#332E98
RGBrgb(51, 46, 152)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 60%)
CMYKcmyk(66.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.52, 35.93, -57.16)
CIE-LCHlch(26.52, 67.52, 302.15°)
OKLaboklab(38.17% 0.0206 -0.165)
OKLCHoklch(38.17% 0.166 277.1)
XYZxyz(8.0079, 4.9241, 30.2281)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E98 #93982E
analogous
#2E5E98 #332E98 #682E98
triadic
#332E98 #98332E #2E9833
tetradic
#332E98 #982E5E #93982E #2E9868
square
#332E98 #982E5E #93982E #2E9868
split-complementary
#332E98 #98682E #5E982E
monochromatic
#13123A #232069 #332E98 #453EC5 #726DD3

Accessibility & contrast

On white

10.58
#332E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#332E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E98
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E98#FFFFFF#000000##FFFFFF
##332E981.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332e98;
/* rgb */ color: rgb(51, 46, 152);
/* oklch */ color: oklch(38.2% 0.166 277.1);
Tailwind
colors: {
  custom: {
    50: '#7868b7',
    500: '#332e98',
    950: '#000000',
  },
}
SCSS
$custom: #332e98;
$custom-light: #7868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332e98",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 242.83,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38167,
    "c": 0.16626,
    "h": 277.1
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#332E98
secondary
#B6BA68
accent
#DD4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332E98

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

Preview Lab → · Contrast checker → · Palette generator →

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