#332D71#332D71

#332D71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.113 H 282.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#332D71
RGBrgb(51, 45, 113)
HSLhsl(245, 43%, 31%)
HSVhsv(245, 60%, 44%)
CMYKcmyk(54.9%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.90, 23.13, -38.62)
CIE-LCHlch(22.90, 45.01, 300.92°)
OKLaboklab(34.49% 0.0249 -0.1105)
OKLCHoklch(34.49% 0.113 282.7)
XYZxyz(5.2834, 3.7725, 16.0694)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D71 #6B712D
analogous
#2D4971 #332D71 #552D71
triadic
#332D71 #71332D #2D7133
tetradic
#332D71 #712D49 #6B712D #2D7155
square
#332D71 #712D49 #6B712D #2D7155
split-complementary
#332D71 #71552D #49712D
monochromatic
#0B0A19 #1F1C45 #332D71 #473E9D #645BBE

Accessibility & contrast

On white

11.97
#332D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#332D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D71
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D71#FFFFFF#000000##FFFFFF
##332D711.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#1A3D4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332d71;
/* rgb */ color: rgb(51, 45, 113);
/* oklch */ color: oklch(34.5% 0.113 282.7);
Tailwind
colors: {
  custom: {
    50: '#71669a',
    500: '#332d71',
    950: '#000000',
  },
}
SCSS
$custom: #332d71;
$custom-light: #71669a;
$custom-dark: #000000;
JSON
{
  "hex": "#332d71",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 245.294,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.11329,
    "h": 282.7
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#332D71
secondary
#9CA357
accent
#D355C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #332D71

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

Preview Lab → · Contrast checker → · Palette generator →

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