#332F87#332F87

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

Color values

HEX#332F87
RGBrgb(51, 47, 135)
HSLhsl(243, 48%, 36%)
HSVhsv(243, 65%, 53%)
CMYKcmyk(62.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(25.22, 29.44, -48.78)
CIE-LCHlch(25.22, 56.98, 301.11°)
OKLaboklab(36.75% 0.0217 -0.1404)
OKLCHoklch(36.75% 0.142 278.8)
XYZxyz(6.7535, 4.4856, 23.4269)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F87 #83872F
analogous
#2F5787 #332F87 #5F2F87
triadic
#332F87 #87332F #2F8733
tetradic
#332F87 #872F57 #83872F #2F875F
square
#332F87 #872F57 #83872F #2F875F
split-complementary
#332F87 #875F2F #57872F
monochromatic
#110F2C #221F5A #332F87 #443FB4 #6B66CA

Accessibility & contrast

On white

11.07
#332F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#332F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F87
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F87#FFFFFF#000000##FFFFFF
##332F871.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332f87;
/* rgb */ color: rgb(51, 47, 135);
/* oklch */ color: oklch(36.8% 0.142 278.8);
Tailwind
colors: {
  custom: {
    50: '#7468ab',
    500: '#332f87',
    950: '#000000',
  },
}
SCSS
$custom: #332f87;
$custom-light: #7468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332f87",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 242.727,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.14207,
    "h": 278.8
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#332F87
secondary
#ADB161
accent
#D850D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332F87

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

Preview Lab → · Contrast checker → · Palette generator →

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