#332FB4#332FB4

#332FB4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.201 H 274.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#332FB4
RGBrgb(51, 47, 180)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 71%)
CMYKcmyk(71.7%, 73.9%, 0%, 29.4%)
CIE-LABlab(29.49, 44.72, -69.18)
CIE-LCHlch(29.49, 82.38, 302.88°)
OKLaboklab(41.13% 0.0153 -0.2001)
OKLCHoklch(41.13% 0.201 274.4)
XYZxyz(10.6172, 6.0311, 43.7757)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB4 #B0B42F
analogous
#2F6DB4 #332FB4 #762FB4
triadic
#332FB4 #B4332F #2FB433
tetradic
#332FB4 #B42F6D #B0B42F #2FB476
square
#332FB4 #B42F6D #B0B42F #2FB476
split-complementary
#332FB4 #B4762F #6DB42F
monochromatic
#181653 #252283 #332FB4 #534FD1 #8280DE

Accessibility & contrast

On white

9.52
#332FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#332FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB4
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB4#FFFFFF#000000##FFFFFF
##332FB41.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332fb4;
/* rgb */ color: rgb(51, 47, 180);
/* oklch */ color: oklch(41.1% 0.201 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e69cc',
    500: '#332fb4',
    950: '#000000',
  },
}
SCSS
$custom: #332fb4;
$custom-light: #7e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb4",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 241.805,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.20065,
    "h": 274.4
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#332FB4
secondary
#C4C778
accent
#E246DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #332FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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