#332E89#332E89

#332E89 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.146 H 278.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#332E89
RGBrgb(51, 46, 137)
HSLhsl(243, 50%, 36%)
HSVhsv(243, 66%, 54%)
CMYKcmyk(62.8%, 66.4%, 0%, 46.3%)
CIE-LABlab(25.15, 30.78, -50.14)
CIE-LCHlch(25.15, 58.83, 301.54°)
OKLaboklab(36.75% 0.0225 -0.1444)
OKLCHoklch(36.75% 0.146 278.8)
XYZxyz(6.8562, 4.4634, 24.1623)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E89 #84892E
analogous
#2E5689 #332E89 #602E89
triadic
#332E89 #89332E #2E8933
tetradic
#332E89 #892E56 #84892E #2E8960
square
#332E89 #892E56 #84892E #2E8960
split-complementary
#332E89 #89602E #56892E
monochromatic
#110F2D #221F5B #332E89 #443DB7 #6B66CC

Accessibility & contrast

On white

11.09
#332E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#332E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E89
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E89#FFFFFF#000000##FFFFFF
##332E891.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332e89;
/* rgb */ color: rgb(51, 46, 137);
/* oklch */ color: oklch(36.8% 0.146 278.8);
Tailwind
colors: {
  custom: {
    50: '#7567ac',
    500: '#332e89',
    950: '#000000',
  },
}
SCSS
$custom: #332e89;
$custom-light: #7567ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332e89",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 243.297,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.14614,
    "h": 278.8
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#332E89
secondary
#AEB260
accent
#D94FD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332E89

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

Preview Lab → · Contrast checker → · Palette generator →

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