#332290#332290

#332290 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.169 H 280.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#332290
RGBrgb(51, 34, 144)
HSLhsl(249, 62%, 35%)
HSVhsv(249, 76%, 56%)
CMYKcmyk(64.6%, 76.4%, 0%, 43.5%)
CIE-LABlab(23.21, 40.29, -57.68)
CIE-LCHlch(23.21, 70.36, 304.93°)
OKLaboklab(35.57% 0.0307 -0.1664)
OKLCHoklch(35.57% 0.169 280.5)
XYZxyz(6.9697, 3.8609, 26.7581)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332290 #7F9022
analogous
#224890 #332290 #6A2290
triadic
#332290 #903322 #229033
tetradic
#332290 #902248 #7F9022 #22906A
square
#332290 #902248 #7F9022 #22906A
split-complementary
#332290 #906A22 #489022
monochromatic
#100B2D #21165E #332290 #452EC2 #6955D7

Accessibility & contrast

On white

11.85
#332290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#332290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332290
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332290#FFFFFF#000000##FFFFFF
##3322901.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332290;
/* rgb */ color: rgb(51, 34, 144);
/* oklch */ color: oklch(35.6% 0.169 280.5);
Tailwind
colors: {
  custom: {
    50: '#7860b2',
    500: '#332290',
    950: '#000000',
  },
}
SCSS
$custom: #332290;
$custom-light: #7860b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332290",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 249.273,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.16924,
    "h": 280.5
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#332290
secondary
#ABBB53
accent
#E543CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332290

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

Preview Lab → · Contrast checker → · Palette generator →

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