#332FB8#332FB8

#332FB8 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.206 H 274.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#332FB8
RGBrgb(51, 47, 184)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 72%)
CMYKcmyk(72.3%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.90, 46.03, -70.88)
CIE-LCHlch(29.90, 84.51, 303.00°)
OKLaboklab(41.54% 0.0145 -0.205)
OKLCHoklch(41.54% 0.206 274)
XYZxyz(11.0306, 6.1964, 45.9528)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB8 #B4B82F
analogous
#2F6FB8 #332FB8 #782FB8
triadic
#332FB8 #B8332F #2FB833
tetradic
#332FB8 #B82F6F #B4B82F #2FB878
square
#332FB8 #B82F6F #B4B82F #2FB878
split-complementary
#332FB8 #B8782F #6FB82F
monochromatic
#181657 #252387 #332FB8 #5552D3 #8582DF

Accessibility & contrast

On white

9.38
#332FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#332FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FB8
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FB8#FFFFFF#000000##FFFFFF
##332FB81.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332fb8;
/* rgb */ color: rgb(51, 47, 184);
/* oklch */ color: oklch(41.5% 0.206 274.0);
Tailwind
colors: {
  custom: {
    50: '#7f69cf',
    500: '#332fb8',
    950: '#000000',
  },
}
SCSS
$custom: #332fb8;
$custom-light: #7f69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb8",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 241.752,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.20552,
    "h": 274
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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