#332D77#332D77

#332D77 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.122 H 281.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#332D77
RGBrgb(51, 45, 119)
HSLhsl(245, 45%, 32%)
HSVhsv(245, 62%, 47%)
CMYKcmyk(57.1%, 62.2%, 0%, 53.3%)
CIE-LABlab(23.38, 25.20, -41.68)
CIE-LCHlch(23.38, 48.71, 301.15°)
OKLaboklab(34.99% 0.0247 -0.1195)
OKLCHoklch(34.99% 0.122 281.7)
XYZxyz(5.6324, 3.9121, 17.9075)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D77 #71772D
analogous
#2D4C77 #332D77 #582D77
triadic
#332D77 #77332D #2D7733
tetradic
#332D77 #772D4C #71772D #2D7758
square
#332D77 #772D4C #71772D #2D7758
split-complementary
#332D77 #77582D #4C772D
monochromatic
#0D0B1E #201C4B #332D77 #463EA3 #655DC2

Accessibility & contrast

On white

11.78
#332D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#332D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D77
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D77#FFFFFF#000000##FFFFFF
##332D771.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#133F4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332d77;
/* rgb */ color: rgb(51, 45, 119);
/* oklch */ color: oklch(35.0% 0.122 281.7);
Tailwind
colors: {
  custom: {
    50: '#72669f',
    500: '#332d77',
    950: '#000000',
  },
}
SCSS
$custom: #332d77;
$custom-light: #72669f;
$custom-dark: #000000;
JSON
{
  "hex": "#332d77",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 244.865,
    "s": 45.122,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.12208,
    "h": 281.7
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#332D77
secondary
#A2A858
accent
#D553CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #332D77

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

Preview Lab → · Contrast checker → · Palette generator →

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