#332FA7#332FA7

#332FA7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.184 H 275.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#332FA7
RGBrgb(51, 47, 167)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 65%)
CMYKcmyk(69.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(28.18, 40.40, -63.54)
CIE-LCHlch(28.18, 75.30, 302.45°)
OKLaboklab(39.8% 0.0176 -0.1836)
OKLCHoklch(39.8% 0.184 275.5)
XYZxyz(9.3545, 5.5260, 37.1254)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA7 #A3A72F
analogous
#2F67A7 #332FA7 #6F2FA7
triadic
#332FA7 #A7332F #2FA733
tetradic
#332FA7 #A72F67 #A3A72F #2FA76F
square
#332FA7 #A72F67 #A3A72F #2FA76F
split-complementary
#332FA7 #A76F2F #67A72F
monochromatic
#161447 #242277 #332FA7 #4C48CB #7B78D9

Accessibility & contrast

On white

9.97
#332FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332FA7
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA7#FFFFFF#000000##FFFFFF
##332FA71.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332fa7;
/* rgb */ color: rgb(51, 47, 167);
/* oklch */ color: oklch(39.8% 0.184 275.5);
Tailwind
colors: {
  custom: {
    50: '#7b69c2',
    500: '#332fa7',
    950: '#000000',
  },
}
SCSS
$custom: #332fa7;
$custom-light: #7b69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa7",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 242,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39803,
    "c": 0.18447,
    "h": 275.5
  },
  "luminance": 0.05527
}

Semantic roles & 50–950 ramp

primary
#332FA7
secondary
#BEC171
accent
#DF48DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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