#332FA6#332FA6

#332FA6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.183 H 275.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#332FA6
RGBrgb(51, 47, 166)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 65%)
CMYKcmyk(69.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(28.09, 40.07, -63.10)
CIE-LCHlch(28.09, 74.75, 302.41°)
OKLaboklab(39.7% 0.0177 -0.1823)
OKLCHoklch(39.7% 0.183 275.6)
XYZxyz(9.2624, 5.4892, 36.6404)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA6 #A2A62F
analogous
#2F67A6 #332FA6 #6F2FA6
triadic
#332FA6 #A6332F #2FA633
tetradic
#332FA6 #A62F67 #A2A62F #2FA66F
square
#332FA6 #A62F67 #A2A62F #2FA66F
split-complementary
#332FA6 #A66F2F #67A62F
monochromatic
#161447 #242176 #332FA6 #4C47CB #7A77D8

Accessibility & contrast

On white

10.01
#332FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#332FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA6
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA6#FFFFFF#000000##FFFFFF
##332FA61.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332fa6;
/* rgb */ color: rgb(51, 47, 166);
/* oklch */ color: oklch(39.7% 0.183 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b69c2',
    500: '#332fa6',
    950: '#000000',
  },
}
SCSS
$custom: #332fa6;
$custom-light: #7b69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa6",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 242.017,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39703,
    "c": 0.1832,
    "h": 275.6
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#332FA6
secondary
#BEC170
accent
#DF49DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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