#332FA5#332FA5

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

Color values

HEX#332FA5
RGBrgb(51, 47, 165)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 65%)
CMYKcmyk(69.1%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.99, 39.73, -62.66)
CIE-LCHlch(27.99, 74.20, 302.38°)
OKLaboklab(39.6% 0.0179 -0.181)
OKLCHoklch(39.6% 0.182 275.6)
XYZxyz(9.1711, 5.4526, 36.1592)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA5 #A1A52F
analogous
#2F66A5 #332FA5 #6E2FA5
triadic
#332FA5 #A5332F #2FA533
tetradic
#332FA5 #A52F66 #A1A52F #2FA56E
square
#332FA5 #A52F66 #A1A52F #2FA56E
split-complementary
#332FA5 #A56E2F #66A52F
monochromatic
#161446 #242175 #332FA5 #4B47CB #7A76D8

Accessibility & contrast

On white

10.04
#332FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#332FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA5
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA5#FFFFFF#000000##FFFFFF
##332FA51.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332fa5;
/* rgb */ color: rgb(51, 47, 165);
/* oklch */ color: oklch(39.6% 0.182 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b69c1',
    500: '#332fa5',
    950: '#000000',
  },
}
SCSS
$custom: #332fa5;
$custom-light: #7b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa5",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 242.034,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39603,
    "c": 0.18193,
    "h": 275.6
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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