#332F99#332F99

#332F99 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.166 H 276.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#332F99
RGBrgb(51, 47, 153)
HSLhsl(242, 53%, 39%)
HSVhsv(242, 69%, 60%)
CMYKcmyk(66.7%, 69.3%, 0%, 40%)
CIE-LABlab(26.84, 35.66, -57.25)
CIE-LCHlch(26.84, 67.45, 301.91°)
OKLaboklab(38.43% 0.0197 -0.1652)
OKLCHoklch(38.43% 0.166 276.8)
XYZxyz(8.1297, 5.0361, 30.6745)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F99 #95992F
analogous
#2F6099 #332F99 #682F99
triadic
#332F99 #99332F #2F9933
tetradic
#332F99 #992F60 #95992F #2F9968
square
#332F99 #992F60 #95992F #2F9968
split-complementary
#332F99 #99682F #60992F
monochromatic
#14123B #23216A #332F99 #4641C5 #736FD3

Accessibility & contrast

On white

10.46
#332F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#332F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F99
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F99#FFFFFF#000000##FFFFFF
##332F991.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332f99;
/* rgb */ color: rgb(51, 47, 153);
/* oklch */ color: oklch(38.4% 0.166 276.8);
Tailwind
colors: {
  custom: {
    50: '#7868b8',
    500: '#332f99',
    950: '#000000',
  },
}
SCSS
$custom: #332f99;
$custom-light: #7868b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332f99",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 242.264,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.16641,
    "h": 276.8
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#332F99
secondary
#B7BA69
accent
#DC4BD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332F99

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

Preview Lab → · Contrast checker → · Palette generator →

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