#332F9B#332F9B

#332F9B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.169 H 276.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#332F9B
RGBrgb(51, 47, 155)
HSLhsl(242, 53%, 40%)
HSVhsv(242, 70%, 61%)
CMYKcmyk(67.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(27.03, 36.34, -58.17)
CIE-LCHlch(27.03, 68.59, 302.00°)
OKLaboklab(38.62% 0.0194 -0.1679)
OKLCHoklch(38.62% 0.169 276.6)
XYZxyz(8.2962, 5.1027, 31.5517)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F9B #979B2F
analogous
#2F619B #332F9B #692F9B
triadic
#332F9B #9B332F #2F9B33
tetradic
#332F9B #9B2F61 #979B2F #2F9B69
square
#332F9B #9B2F61 #979B2F #2F9B69
split-complementary
#332F9B #9B692F #619B2F
monochromatic
#14133D #24216C #332F9B #4742C6 #7471D4

Accessibility & contrast

On white

10.39
#332F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#332F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F9B
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F9B#FFFFFF#000000##FFFFFF
##332F9B1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332f9b;
/* rgb */ color: rgb(51, 47, 155);
/* oklch */ color: oklch(38.6% 0.169 276.6);
Tailwind
colors: {
  custom: {
    50: '#7968b9',
    500: '#332f9b',
    950: '#000000',
  },
}
SCSS
$custom: #332f9b;
$custom-light: #7968b9;
$custom-dark: #000000;
JSON
{
  "hex": "#332f9b",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 242.222,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3862,
    "c": 0.16904,
    "h": 276.6
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#332F9B
secondary
#B8BB6A
accent
#DD4BD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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