#332A90#332A90

#332A90 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.160 H 278.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#332A90
RGBrgb(51, 42, 144)
HSLhsl(245, 55%, 36%)
HSVhsv(245, 71%, 56%)
CMYKcmyk(64.6%, 70.8%, 0%, 43.5%)
CIE-LABlab(24.87, 35.66, -54.95)
CIE-LCHlch(24.87, 65.50, 302.98°)
OKLaboklab(36.75% 0.0249 -0.1585)
OKLCHoklch(36.75% 0.16 278.9)
XYZxyz(7.2256, 4.3728, 26.8434)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A90 #87902A
analogous
#2A5490 #332A90 #662A90
triadic
#332A90 #90332A #2A9033
tetradic
#332A90 #902A54 #87902A #2A9066
square
#332A90 #902A54 #87902A #2A9066
split-complementary
#332A90 #90662A #54902A
monochromatic
#110E31 #221C61 #332A90 #4438BF #6D63D1

Accessibility & contrast

On white

11.20
#332A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#332A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A90
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A90#FFFFFF#000000##FFFFFF
##332A901.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332a90;
/* rgb */ color: rgb(51, 42, 144);
/* oklch */ color: oklch(36.7% 0.160 278.9);
Tailwind
colors: {
  custom: {
    50: '#7765b1',
    500: '#332a90',
    950: '#000000',
  },
}
SCSS
$custom: #332a90;
$custom-light: #7765b1;
$custom-dark: #000000;
JSON
{
  "hex": "#332a90",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 245.294,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36749,
    "c": 0.16044,
    "h": 278.9
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#332A90
secondary
#B0B75E
accent
#DE4AD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332A90

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

Preview Lab → · Contrast checker → · Palette generator →

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