#332F9C#332F9C

#332F9C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.170 H 276.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#332F9C
RGBrgb(51, 47, 156)
HSLhsl(242, 54%, 40%)
HSVhsv(242, 70%, 61%)
CMYKcmyk(67.3%, 69.9%, 0%, 38.8%)
CIE-LABlab(27.12, 36.68, -58.62)
CIE-LCHlch(27.12, 69.15, 302.04°)
OKLaboklab(38.72% 0.0193 -0.1693)
OKLCHoklch(38.72% 0.17 276.5)
XYZxyz(8.3805, 5.1364, 31.9958)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F9C #989C2F
analogous
#2F619C #332F9C #6A2F9C
triadic
#332F9C #9C332F #2F9C33
tetradic
#332F9C #9C2F61 #989C2F #2F9C6A
square
#332F9C #9C2F61 #989C2F #2F9C6A
split-complementary
#332F9C #9C6A2F #619C2F
monochromatic
#14133E #24216D #332F9C #4742C6 #7571D4

Accessibility & contrast

On white

10.36
#332F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#332F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F9C
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F9C#FFFFFF#000000##FFFFFF
##332F9C1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332f9c;
/* rgb */ color: rgb(51, 47, 156);
/* oklch */ color: oklch(38.7% 0.170 276.5);
Tailwind
colors: {
  custom: {
    50: '#7968ba',
    500: '#332f9c',
    950: '#000000',
  },
}
SCSS
$custom: #332f9c;
$custom-light: #7968ba;
$custom-dark: #000000;
JSON
{
  "hex": "#332f9c",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 242.202,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.17035,
    "h": 276.5
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#332F9C
secondary
#B9BC6B
accent
#DD4BD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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