#332F91#332F91

#332F91 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.156 H 277.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#332F91
RGBrgb(51, 47, 145)
HSLhsl(242, 51%, 38%)
HSVhsv(242, 68%, 57%)
CMYKcmyk(64.8%, 67.6%, 0%, 43.1%)
CIE-LABlab(26.10, 32.91, -53.54)
CIE-LCHlch(26.10, 62.85, 301.57°)
OKLaboklab(37.67% 0.0208 -0.1544)
OKLCHoklch(37.67% 0.156 277.7)
XYZxyz(7.4909, 4.7806, 27.3106)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F91 #8D912F
analogous
#2F5C91 #332F91 #642F91
triadic
#332F91 #91332F #2F9133
tetradic
#332F91 #912F5C #8D912F #2F9164
square
#332F91 #912F5C #8D912F #2F9164
split-complementary
#332F91 #91642F #5C912F
monochromatic
#121135 #232063 #332F91 #433EBF #6F6BCF

Accessibility & contrast

On white

10.74
#332F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#332F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F91
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F91#FFFFFF#000000##FFFFFF
##332F911.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332f91;
/* rgb */ color: rgb(51, 47, 145);
/* oklch */ color: oklch(37.7% 0.156 277.7);
Tailwind
colors: {
  custom: {
    50: '#7768b2',
    500: '#332f91',
    950: '#000000',
  },
}
SCSS
$custom: #332f91;
$custom-light: #7768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332f91",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 242.449,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37667,
    "c": 0.15577,
    "h": 277.7
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#332F91
secondary
#B3B665
accent
#DB4DD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332F91

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

Preview Lab → · Contrast checker → · Palette generator →

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