#332D80#332D80

#332D80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.135 H 280.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#332D80
RGBrgb(51, 45, 128)
HSLhsl(244, 48%, 34%)
HSVhsv(244, 65%, 50%)
CMYKcmyk(60.2%, 64.8%, 0%, 49.8%)
CIE-LABlab(24.12, 28.31, -46.17)
CIE-LCHlch(24.12, 54.16, 301.51°)
OKLaboklab(35.77% 0.0242 -0.1327)
OKLCHoklch(35.77% 0.135 280.3)
XYZxyz(6.1987, 4.1387, 20.8901)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D80 #7A802D
analogous
#2D5180 #332D80 #5D2D80
triadic
#332D80 #80332D #2D8033
tetradic
#332D80 #802D51 #7A802D #2D805D
square
#332D80 #802D51 #7A802D #2D805D
split-complementary
#332D80 #805D2D #51802D
monochromatic
#0F0D25 #211D53 #332D80 #453DAD #6860C7

Accessibility & contrast

On white

11.49
#332D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D80
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D80#FFFFFF#000000##FFFFFF
##332D801.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#034252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332d80;
/* rgb */ color: rgb(51, 45, 128);
/* oklch */ color: oklch(35.8% 0.135 280.3);
Tailwind
colors: {
  custom: {
    50: '#7366a6',
    500: '#332d80',
    950: '#000000',
  },
}
SCSS
$custom: #332d80;
$custom-light: #7366a6;
$custom-dark: #000000;
JSON
{
  "hex": "#332d80",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 244.337,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35766,
    "c": 0.13494,
    "h": 280.3
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#332D80
secondary
#A8AE5B
accent
#D850CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #332D80

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

Preview Lab → · Contrast checker → · Palette generator →

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