#332FA8#332FA8

#332FA8 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.186 H 275.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#332FA8
RGBrgb(51, 47, 168)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 66%)
CMYKcmyk(69.6%, 72%, 0%, 34.1%)
CIE-LABlab(28.28, 40.74, -63.98)
CIE-LCHlch(28.28, 75.85, 302.49°)
OKLaboklab(39.9% 0.0174 -0.1849)
OKLCHoklch(39.9% 0.186 275.4)
XYZxyz(9.4473, 5.5631, 37.6141)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA8 #A4A82F
analogous
#2F68A8 #332FA8 #6F2FA8
triadic
#332FA8 #A8332F #2FA833
tetradic
#332FA8 #A82F68 #A4A82F #2FA86F
square
#332FA8 #A82F68 #A4A82F #2FA86F
split-complementary
#332FA8 #A86F2F #68A82F
monochromatic
#161448 #242278 #332FA8 #4D48CC #7B78D9

Accessibility & contrast

On white

9.94
#332FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#332FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA8
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA8#FFFFFF#000000##FFFFFF
##332FA81.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332fa8;
/* rgb */ color: rgb(51, 47, 168);
/* oklch */ color: oklch(39.9% 0.186 275.4);
Tailwind
colors: {
  custom: {
    50: '#7c69c3',
    500: '#332fa8',
    950: '#000000',
  },
}
SCSS
$custom: #332fa8;
$custom-light: #7c69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa8",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 241.983,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.18574,
    "h": 275.4
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#332FA8
secondary
#BFC171
accent
#E048DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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