#332FB7#332FB7

#332FB7 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.4% C 0.204 H 274.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#332FB7
RGBrgb(51, 47, 183)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 72%)
CMYKcmyk(72.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(29.80, 45.70, -70.45)
CIE-LCHlch(29.80, 83.98, 302.97°)
OKLaboklab(41.44% 0.0147 -0.2038)
OKLCHoklch(41.44% 0.204 274.1)
XYZxyz(10.9262, 6.1547, 45.4027)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB7 #B3B72F
analogous
#2F6FB7 #332FB7 #772FB7
triadic
#332FB7 #B7332F #2FB733
tetradic
#332FB7 #B72F6F #B3B72F #2FB777
square
#332FB7 #B72F6F #B3B72F #2FB777
split-complementary
#332FB7 #B7772F #6FB72F
monochromatic
#181656 #252286 #332FB7 #5551D2 #8482DF

Accessibility & contrast

On white

9.41
#332FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#332FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB7
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB7#FFFFFF#000000##FFFFFF
##332FB71.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0040B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332fb7;
/* rgb */ color: rgb(51, 47, 183);
/* oklch */ color: oklch(41.4% 0.204 274.1);
Tailwind
colors: {
  custom: {
    50: '#7f69ce',
    500: '#332fb7',
    950: '#000000',
  },
}
SCSS
$custom: #332fb7;
$custom-light: #7f69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb7",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 241.765,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41438,
    "c": 0.20431,
    "h": 274.1
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#332FB7
secondary
#C6C87A
accent
#E245DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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