#332971#332971

#332971 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.7% C 0.119 H 284.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#332971
RGBrgb(51, 41, 113)
HSLhsl(248, 47%, 30%)
HSVhsv(248, 64%, 44%)
CMYKcmyk(54.9%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.88, 25.79, -40.28)
CIE-LCHlch(21.88, 47.83, 302.63°)
OKLaboklab(33.73% 0.0295 -0.1154)
OKLCHoklch(33.73% 0.119 284.3)
XYZxyz(5.1379, 3.4817, 16.0209)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332971 #677129
analogous
#294371 #332971 #572971
triadic
#332971 #713329 #297133
tetradic
#332971 #712943 #677129 #297157
square
#332971 #712943 #677129 #297157
split-complementary
#332971 #715729 #437129
monochromatic
#0A0817 #1F1944 #332971 #47399E #6354C1

Accessibility & contrast

On white

12.38
#332971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332971
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332971#FFFFFF#000000##FFFFFF
##3329711.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#1A3A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332971;
/* rgb */ color: rgb(51, 41, 113);
/* oklch */ color: oklch(33.7% 0.119 284.3);
Tailwind
colors: {
  custom: {
    50: '#71639a',
    500: '#332971',
    950: '#000000',
  },
}
SCSS
$custom: #332971;
$custom-light: #71639a;
$custom-dark: #000000;
JSON
{
  "hex": "#332971",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 248.333,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33729,
    "c": 0.11915,
    "h": 284.3
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#332971
secondary
#98A353
accent
#D651C4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332971

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

Preview Lab → · Contrast checker → · Palette generator →

#332971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva