#332B85#332B85

#332B85 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.144 H 280.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#332B85
RGBrgb(51, 43, 133)
HSLhsl(245, 51%, 35%)
HSVhsv(245, 68%, 52%)
CMYKcmyk(61.7%, 67.7%, 0%, 47.8%)
CIE-LABlab(24.08, 31.31, -49.39)
CIE-LCHlch(24.08, 58.47, 302.37°)
OKLaboklab(35.87% 0.0257 -0.1422)
OKLCHoklch(35.87% 0.144 280.2)
XYZxyz(6.4614, 4.1246, 22.6414)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B85 #7D852B
analogous
#2B5085 #332B85 #602B85
triadic
#332B85 #85332B #2B8533
tetradic
#332B85 #852B50 #7D852B #2B8560
square
#332B85 #852B50 #7D852B #2B8560
split-complementary
#332B85 #85602B #50852B
monochromatic
#100D29 #211C57 #332B85 #453AB3 #695FCB

Accessibility & contrast

On white

11.51
#332B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B85
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B85#FFFFFF#000000##FFFFFF
##332B851.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332b85;
/* rgb */ color: rgb(51, 43, 133);
/* oklch */ color: oklch(35.9% 0.144 280.2);
Tailwind
colors: {
  custom: {
    50: '#7465a9',
    500: '#332b85',
    950: '#000000',
  },
}
SCSS
$custom: #332b85;
$custom-light: #7465a9;
$custom-dark: #000000;
JSON
{
  "hex": "#332b85",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 245.333,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35868,
    "c": 0.14449,
    "h": 280.2
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#332B85
secondary
#AAB15B
accent
#DB4DCE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332B85

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

Preview Lab → · Contrast checker → · Palette generator →

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