#332E9B#332E9B

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

Color values

HEX#332E9B
RGBrgb(51, 46, 155)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 61%)
CMYKcmyk(67.1%, 70.3%, 0%, 39.2%)
CIE-LABlab(26.80, 36.95, -58.53)
CIE-LCHlch(26.80, 69.22, 302.26°)
OKLaboklab(38.46% 0.0202 -0.169)
OKLCHoklch(38.46% 0.17 276.8)
XYZxyz(8.2567, 5.0236, 31.5385)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E9B #969B2E
analogous
#2E609B #332E9B #6A2E9B
triadic
#332E9B #9B332E #2E9B33
tetradic
#332E9B #9B2E60 #969B2E #2E9B6A
square
#332E9B #9B2E60 #969B2E #2E9B6A
split-complementary
#332E9B #9B6A2E #609B2E
monochromatic
#14123D #23206C #332E9B #4640C6 #746FD4

Accessibility & contrast

On white

10.47
#332E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#332E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E9B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E9B#FFFFFF#000000##FFFFFF
##332E9B1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332e9b;
/* rgb */ color: rgb(51, 46, 155);
/* oklch */ color: oklch(38.5% 0.170 276.8);
Tailwind
colors: {
  custom: {
    50: '#7968ba',
    500: '#332e9b',
    950: '#000000',
  },
}
SCSS
$custom: #332e9b;
$custom-light: #7968ba;
$custom-dark: #000000;
JSON
{
  "hex": "#332e9b",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 242.752,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38459,
    "c": 0.17019,
    "h": 276.8
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#332E9B
secondary
#B8BC69
accent
#DE4AD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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