#332FA2#332FA2

#332FA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.178 H 275.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#332FA2
RGBrgb(51, 47, 162)
HSLhsl(242, 55%, 41%)
HSVhsv(242, 71%, 64%)
CMYKcmyk(68.5%, 71%, 0%, 36.5%)
CIE-LABlab(27.70, 38.72, -61.32)
CIE-LCHlch(27.70, 72.53, 302.27°)
OKLaboklab(39.31% 0.0184 -0.1771)
OKLCHoklch(39.31% 0.178 275.9)
XYZxyz(8.9012, 5.3447, 34.7380)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA2 #9EA22F
analogous
#2F64A2 #332FA2 #6C2FA2
triadic
#332FA2 #A2332F #2FA233
tetradic
#332FA2 #A22F64 #9EA22F #2FA26C
square
#332FA2 #A22F64 #9EA22F #2FA26C
split-complementary
#332FA2 #A26C2F #64A22F
monochromatic
#151343 #242173 #332FA2 #4A45C9 #7875D7

Accessibility & contrast

On white

10.15
#332FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA2
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA2#FFFFFF#000000##FFFFFF
##332FA21.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332fa2;
/* rgb */ color: rgb(51, 47, 162);
/* oklch */ color: oklch(39.3% 0.178 275.9);
Tailwind
colors: {
  custom: {
    50: '#7a69bf',
    500: '#332fa2',
    950: '#000000',
  },
}
SCSS
$custom: #332fa2;
$custom-light: #7a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa2",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 242.087,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39305,
    "c": 0.1781,
    "h": 275.9
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#332FA2
secondary
#BCBF6E
accent
#DE49D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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