#332790#332790

#332790 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.164 H 279.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#332790
RGBrgb(51, 39, 144)
HSLhsl(247, 57%, 36%)
HSVhsv(247, 73%, 56%)
CMYKcmyk(64.6%, 72.9%, 0%, 43.5%)
CIE-LABlab(24.22, 37.45, -56.01)
CIE-LCHlch(24.22, 67.38, 303.77°)
OKLaboklab(36.29% 0.0272 -0.1616)
OKLCHoklch(36.29% 0.164 279.6)
XYZxyz(7.1232, 4.1679, 26.8093)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332790 #849027
analogous
#274F90 #332790 #672790
triadic
#332790 #903327 #279033
tetradic
#332790 #90274F #849027 #279067
square
#332790 #90274F #849027 #279067
split-complementary
#332790 #906727 #4F9027
monochromatic
#110D30 #221A60 #332790 #4434C0 #6B5ED3

Accessibility & contrast

On white

11.45
#332790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332790
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332790#FFFFFF#000000##FFFFFF
##3327901.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00358E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332790;
/* rgb */ color: rgb(51, 39, 144);
/* oklch */ color: oklch(36.3% 0.164 279.6);
Tailwind
colors: {
  custom: {
    50: '#7763b2',
    500: '#332790',
    950: '#000000',
  },
}
SCSS
$custom: #332790;
$custom-light: #7763b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332790",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 246.857,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.16386,
    "h": 279.6
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#332790
secondary
#AEB95A
accent
#E147CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332790

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

Preview Lab → · Contrast checker → · Palette generator →

#332790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva