#332FA3#332FA3

#332FA3 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.179 H 275.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#332FA3
RGBrgb(51, 47, 163)
HSLhsl(242, 55%, 41%)
HSVhsv(242, 71%, 64%)
CMYKcmyk(68.7%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.79, 39.06, -61.77)
CIE-LCHlch(27.79, 73.08, 302.30°)
OKLaboklab(39.4% 0.0182 -0.1784)
OKLCHoklch(39.4% 0.179 275.8)
XYZxyz(8.9904, 5.3804, 35.2080)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA3 #9FA32F
analogous
#2F65A3 #332FA3 #6D2FA3
triadic
#332FA3 #A3332F #2FA333
tetradic
#332FA3 #A32F65 #9FA32F #2FA36D
square
#332FA3 #A32F65 #9FA32F #2FA36D
split-complementary
#332FA3 #A36D2F #65A32F
monochromatic
#151444 #242173 #332FA3 #4A46CA #7975D7

Accessibility & contrast

On white

10.11
#332FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#332FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA3
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA3#FFFFFF#000000##FFFFFF
##332FA31.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332fa3;
/* rgb */ color: rgb(51, 47, 163);
/* oklch */ color: oklch(39.4% 0.179 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a69bf',
    500: '#332fa3',
    950: '#000000',
  },
}
SCSS
$custom: #332fa3;
$custom-light: #7a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa3",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 242.069,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39404,
    "c": 0.17938,
    "h": 275.8
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#332FA3
secondary
#BCBF6F
accent
#DF49D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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