#332FBB#332FBB

#332FBB is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.209 H 273.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#332FBB
RGBrgb(51, 47, 187)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(72.7%, 74.9%, 0%, 26.7%)
CIE-LABlab(30.21, 47.01, -72.14)
CIE-LCHlch(30.21, 86.10, 303.09°)
OKLaboklab(41.86% 0.0139 -0.2087)
OKLCHoklch(41.86% 0.209 273.8)
XYZxyz(11.3484, 6.3236, 47.6266)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FBB #B7BB2F
analogous
#2F71BB #332FBB #792FBB
triadic
#332FBB #BB332F #2FBB33
tetradic
#332FBB #BB2F71 #B7BB2F #2FBB79
square
#332FBB #BB2F71 #B7BB2F #2FBB79
split-complementary
#332FBB #BB792F #71BB2F
monochromatic
#181659 #26238A #332FBB #5753D4 #8784E0

Accessibility & contrast

On white

9.27
#332FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#332FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FBB
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FBB#FFFFFF#000000##FFFFFF
##332FBB1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #332fbb;
/* rgb */ color: rgb(51, 47, 187);
/* oklch */ color: oklch(41.9% 0.209 273.8);
Tailwind
colors: {
  custom: {
    50: '#806ad1',
    500: '#332fbb',
    950: '#000000',
  },
}
SCSS
$custom: #332fbb;
$custom-light: #806ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#332fbb",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 241.714,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41855,
    "c": 0.20914,
    "h": 273.8
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#332FBB
secondary
#C7C97C
accent
#E345DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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