#332E71#332E71

#332E71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.7% C 0.112 H 282.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#332E71
RGBrgb(51, 46, 113)
HSLhsl(244, 42%, 31%)
HSVhsv(244, 59%, 44%)
CMYKcmyk(54.9%, 59.3%, 0%, 55.7%)
CIE-LABlab(23.17, 22.46, -38.19)
CIE-LCHlch(23.17, 44.30, 300.46°)
OKLaboklab(34.68% 0.0237 -0.1093)
OKLCHoklch(34.68% 0.112 282.2)
XYZxyz(5.3220, 3.8497, 16.0822)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E71 #6C712E
analogous
#2E4A71 #332E71 #542E71
triadic
#332E71 #71332E #2E7133
tetradic
#332E71 #712E4A #6C712E #2E7154
square
#332E71 #712E4A #6C712E #2E7154
split-complementary
#332E71 #71542E #4A712E
monochromatic
#0C0B1A #1F1C46 #332E71 #47409C #645DBD

Accessibility & contrast

On white

11.86
#332E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#332E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E71
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E71#FFFFFF#000000##FFFFFF
##332E711.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#193D4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332e71;
/* rgb */ color: rgb(51, 46, 113);
/* oklch */ color: oklch(34.7% 0.112 282.2);
Tailwind
colors: {
  custom: {
    50: '#70679a',
    500: '#332e71',
    950: '#000000',
  },
}
SCSS
$custom: #332e71;
$custom-light: #70679a;
$custom-dark: #000000;
JSON
{
  "hex": "#332e71",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 244.478,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.11181,
    "h": 282.2
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#332E71
secondary
#9DA258
accent
#D256C9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #332E71

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

Preview Lab → · Contrast checker → · Palette generator →

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