#332F8A#332F8A

#332F8A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.146 H 278.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#332F8A
RGBrgb(51, 47, 138)
HSLhsl(243, 49%, 36%)
HSVhsv(243, 66%, 54%)
CMYKcmyk(63%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.48, 30.48, -50.23)
CIE-LCHlch(25.48, 58.75, 301.25°)
OKLaboklab(37.02% 0.0215 -0.1446)
OKLCHoklch(37.02% 0.146 278.4)
XYZxyz(6.9677, 4.5713, 24.5550)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F8A #868A2F
analogous
#2F598A #332F8A #612F8A
triadic
#332F8A #8A332F #2F8A33
tetradic
#332F8A #8A2F59 #868A2F #2F8A61
square
#332F8A #8A2F59 #868A2F #2F8A61
split-complementary
#332F8A #8A612F #598A2F
monochromatic
#11102F #221F5C #332F8A #443FB8 #6C68CC

Accessibility & contrast

On white

10.97
#332F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#332F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F8A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F8A#FFFFFF#000000##FFFFFF
##332F8A1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332f8a;
/* rgb */ color: rgb(51, 47, 138);
/* oklch */ color: oklch(37.0% 0.146 278.4);
Tailwind
colors: {
  custom: {
    50: '#7568ad',
    500: '#332f8a',
    950: '#000000',
  },
}
SCSS
$custom: #332f8a;
$custom-light: #7568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#332f8a",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 242.637,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37021,
    "c": 0.14623,
    "h": 278.4
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#332F8A
secondary
#AFB362
accent
#D94FD3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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