#332686#332686

#332686 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.152 H 281.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#332686
RGBrgb(51, 38, 134)
HSLhsl(248, 56%, 34%)
HSVhsv(248, 72%, 53%)
CMYKcmyk(61.9%, 71.6%, 0%, 47.5%)
CIE-LABlab(23.04, 34.73, -51.72)
CIE-LCHlch(23.04, 62.30, 303.88°)
OKLaboklab(35.14% 0.0299 -0.149)
OKLCHoklch(35.14% 0.152 281.3)
XYZxyz(6.3601, 3.8108, 22.9500)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332686 #798626
analogous
#264986 #332686 #632686
triadic
#332686 #863326 #268633
tetradic
#332686 #862649 #798626 #268663
square
#332686 #862649 #798626 #268663
split-complementary
#332686 #866326 #498626
monochromatic
#0F0B27 #211856 #332686 #4534B6 #6757CF

Accessibility & contrast

On white

11.92
#332686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#332686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332686
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332686#FFFFFF#000000##FFFFFF
##3326861.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332686;
/* rgb */ color: rgb(51, 38, 134);
/* oklch */ color: oklch(35.1% 0.152 281.3);
Tailwind
colors: {
  custom: {
    50: '#7562aa',
    500: '#332686',
    950: '#000000',
  },
}
SCSS
$custom: #332686;
$custom-light: #7562aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332686",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 248.125,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35145,
    "c": 0.152,
    "h": 281.3
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#332686
secondary
#A7B454
accent
#DF49CB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332686

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

Preview Lab → · Contrast checker → · Palette generator →

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