#332FA0#332FA0

#332FA0 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.176 H 276.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#332FA0
RGBrgb(51, 47, 160)
HSLhsl(242, 55%, 41%)
HSVhsv(242, 71%, 63%)
CMYKcmyk(68.1%, 70.6%, 0%, 37.3%)
CIE-LABlab(27.50, 38.04, -60.43)
CIE-LCHlch(27.50, 71.41, 302.19°)
OKLaboklab(39.11% 0.0187 -0.1745)
OKLCHoklch(39.11% 0.176 276.1)
XYZxyz(8.7248, 5.2741, 33.8091)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA0 #9CA02F
analogous
#2F63A0 #332FA0 #6B2FA0
triadic
#332FA0 #A0332F #2FA033
tetradic
#332FA0 #A02F63 #9CA02F #2FA06B
square
#332FA0 #A02F63 #9CA02F #2FA06B
split-complementary
#332FA0 #A06B2F #63A02F
monochromatic
#151341 #242171 #332FA0 #4944C8 #7773D6

Accessibility & contrast

On white

10.22
#332FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#332FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA0
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA0#FFFFFF#000000##FFFFFF
##332FA01.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332fa0;
/* rgb */ color: rgb(51, 47, 160);
/* oklch */ color: oklch(39.1% 0.176 276.1);
Tailwind
colors: {
  custom: {
    50: '#7a68bd',
    500: '#332fa0',
    950: '#000000',
  },
}
SCSS
$custom: #332fa0;
$custom-light: #7a68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa0",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 242.124,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39108,
    "c": 0.17553,
    "h": 276.1
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#332FA0
secondary
#BBBE6D
accent
#DE4AD9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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