#332FB9#332FB9

#332FB9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.207 H 274.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#332FB9
RGBrgb(51, 47, 185)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(72.4%, 74.6%, 0%, 27.5%)
CIE-LABlab(30.01, 46.36, -71.30)
CIE-LCHlch(30.01, 85.04, 303.03°)
OKLaboklab(41.65% 0.0143 -0.2062)
OKLCHoklch(41.65% 0.207 274)
XYZxyz(11.1358, 6.2385, 46.5068)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB9 #B5B92F
analogous
#2F70B9 #332FB9 #782FB9
triadic
#332FB9 #B9332F #2FB933
tetradic
#332FB9 #B92F70 #B5B92F #2FB978
square
#332FB9 #B92F70 #B5B92F #2FB978
split-complementary
#332FB9 #B9782F #70B92F
monochromatic
#181657 #262388 #332FB9 #5652D3 #8683DF

Accessibility & contrast

On white

9.34
#332FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#332FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB9
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB9#FFFFFF#000000##FFFFFF
##332FB91.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #332fb9;
/* rgb */ color: rgb(51, 47, 185);
/* oklch */ color: oklch(41.6% 0.207 274.0);
Tailwind
colors: {
  custom: {
    50: '#7f6acf',
    500: '#332fb9',
    950: '#000000',
  },
}
SCSS
$custom: #332fb9;
$custom-light: #7f6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb9",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 241.739,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.20674,
    "h": 274
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#332FB9
secondary
#C6C97B
accent
#E345DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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