#332E87#332E87

#332E87 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.143 H 279.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#332E87
RGBrgb(51, 46, 135)
HSLhsl(243, 49%, 35%)
HSVhsv(243, 66%, 53%)
CMYKcmyk(62.2%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.97, 30.08, -49.18)
CIE-LCHlch(24.97, 57.65, 301.45°)
OKLaboklab(36.57% 0.0227 -0.1416)
OKLCHoklch(36.57% 0.143 279.1)
XYZxyz(6.7140, 4.4066, 23.4137)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E87 #82872E
analogous
#2E5587 #332E87 #5F2E87
triadic
#332E87 #87332E #2E8733
tetradic
#332E87 #872E55 #82872E #2E875F
square
#332E87 #872E55 #82872E #2E875F
split-complementary
#332E87 #875F2E #55872E
monochromatic
#110F2C #221E59 #332E87 #443EB5 #6B65CA

Accessibility & contrast

On white

11.16
#332E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E87
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E87#FFFFFF#000000##FFFFFF
##332E871.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332e87;
/* rgb */ color: rgb(51, 46, 135);
/* oklch */ color: oklch(36.6% 0.143 279.1);
Tailwind
colors: {
  custom: {
    50: '#7567ab',
    500: '#332e87',
    950: '#000000',
  },
}
SCSS
$custom: #332e87;
$custom-light: #7567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332e87",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 243.371,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.14339,
    "h": 279.1
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#332E87
secondary
#ADB160
accent
#D94FD1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332E87

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

Preview Lab → · Contrast checker → · Palette generator →

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