#332890#332890

#332890 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.163 H 279.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#332890
RGBrgb(51, 40, 144)
HSLhsl(246, 57%, 36%)
HSVhsv(246, 72%, 56%)
CMYKcmyk(64.6%, 72.2%, 0%, 43.5%)
CIE-LABlab(24.43, 36.86, -55.66)
CIE-LCHlch(24.43, 66.76, 303.51°)
OKLaboklab(36.44% 0.0265 -0.1606)
OKLCHoklch(36.44% 0.163 279.4)
XYZxyz(7.1565, 4.2345, 26.8204)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332890 #859028
analogous
#285190 #332890 #672890
triadic
#332890 #903328 #289033
tetradic
#332890 #902851 #859028 #289067
square
#332890 #902851 #859028 #289067
split-complementary
#332890 #906728 #519028
monochromatic
#110D30 #221B60 #332890 #4435C0 #6C60D3

Accessibility & contrast

On white

11.37
#332890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#332890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332890
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332890#FFFFFF#000000##FFFFFF
##3328901.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332890;
/* rgb */ color: rgb(51, 40, 144);
/* oklch */ color: oklch(36.4% 0.163 279.4);
Tailwind
colors: {
  custom: {
    50: '#7763b2',
    500: '#332890',
    950: '#000000',
  },
}
SCSS
$custom: #332890;
$custom-light: #7763b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332890",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 246.346,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36438,
    "c": 0.16274,
    "h": 279.4
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#332890
secondary
#AEB85C
accent
#E048D0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332890

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

Preview Lab → · Contrast checker → · Palette generator →

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