#332F8D#332F8D

#332F8D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.150 H 278.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#332F8D
RGBrgb(51, 47, 141)
HSLhsl(243, 50%, 37%)
HSVhsv(243, 67%, 55%)
CMYKcmyk(63.8%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.74, 31.52, -51.66)
CIE-LCHlch(25.74, 60.51, 301.39°)
OKLaboklab(37.3% 0.0212 -0.1488)
OKLCHoklch(37.3% 0.15 278.1)
XYZxyz(7.1879, 4.6594, 25.7147)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F8D #898D2F
analogous
#2F5A8D #332F8D #622F8D
triadic
#332F8D #8D332F #2F8D33
tetradic
#332F8D #8D2F5A #898D2F #2F8D62
square
#332F8D #8D2F5A #898D2F #2F8D62
split-complementary
#332F8D #8D622F #5A8D2F
monochromatic
#121031 #22205F #332F8D #443EBB #6E69CD

Accessibility & contrast

On white

10.87
#332F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#332F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F8D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F8D#FFFFFF#000000##FFFFFF
##332F8D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #332f8d;
/* rgb */ color: rgb(51, 47, 141);
/* oklch */ color: oklch(37.3% 0.150 278.1);
Tailwind
colors: {
  custom: {
    50: '#7668af',
    500: '#332f8d',
    950: '#000000',
  },
}
SCSS
$custom: #332f8d;
$custom-light: #7668af;
$custom-dark: #000000;
JSON
{
  "hex": "#332f8d",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 242.553,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37296,
    "c": 0.15034,
    "h": 278.1
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#332F8D
secondary
#B1B464
accent
#DA4ED4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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