#332F71#332F71

#332F71 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.9% C 0.110 H 281.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#332F71
RGBrgb(51, 47, 113)
HSLhsl(244, 41%, 31%)
HSVhsv(244, 58%, 44%)
CMYKcmyk(54.9%, 58.4%, 0%, 55.7%)
CIE-LABlab(23.43, 21.78, -37.76)
CIE-LCHlch(23.43, 43.59, 299.98°)
OKLaboklab(34.88% 0.0225 -0.108)
OKLCHoklch(34.88% 0.11 281.8)
XYZxyz(5.3615, 3.9288, 16.0954)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F71 #6D712F
analogous
#2F4C71 #332F71 #542F71
triadic
#332F71 #71332F #2F7133
tetradic
#332F71 #712F4C #6D712F #2F7154
square
#332F71 #712F4C #6D712F #2F7154
split-complementary
#332F71 #71542F #4C712F
monochromatic
#0C0B1B #1F1D46 #332F71 #47419C #645EBC

Accessibility & contrast

On white

11.76
#332F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F71
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F71#FFFFFF#000000##FFFFFF
##332F711.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043A73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#193E4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332f71;
/* rgb */ color: rgb(51, 47, 113);
/* oklch */ color: oklch(34.9% 0.110 281.8);
Tailwind
colors: {
  custom: {
    50: '#70679a',
    500: '#332f71',
    950: '#000000',
  },
}
SCSS
$custom: #332f71;
$custom-light: #70679a;
$custom-dark: #000000;
JSON
{
  "hex": "#332f71",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 243.636,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34878,
    "c": 0.1103,
    "h": 281.8
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#332F71
secondary
#9EA25A
accent
#D157CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #332F71

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

Preview Lab → · Contrast checker → · Palette generator →

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