#332687#332687

#332687 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.153 H 281.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#332687
RGBrgb(51, 38, 135)
HSLhsl(248, 56%, 34%)
HSVhsv(248, 72%, 53%)
CMYKcmyk(62.2%, 71.9%, 0%, 47.1%)
CIE-LABlab(23.13, 35.07, -52.19)
CIE-LCHlch(23.13, 62.88, 303.90°)
OKLaboklab(35.24% 0.0297 -0.1504)
OKLCHoklch(35.24% 0.153 281.2)
XYZxyz(6.4302, 3.8388, 23.3191)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332687 #7A8726
analogous
#264A87 #332687 #642687
triadic
#332687 #873326 #268733
tetradic
#332687 #87264A #7A8726 #268764
square
#332687 #87264A #7A8726 #268764
split-complementary
#332687 #876426 #4A8726
monochromatic
#0F0B27 #211957 #332687 #4533B7 #6858D0

Accessibility & contrast

On white

11.88
#332687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332687
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332687#FFFFFF#000000##FFFFFF
##3326871.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332687;
/* rgb */ color: rgb(51, 38, 135);
/* oklch */ color: oklch(35.2% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#7562ab',
    500: '#332687',
    950: '#000000',
  },
}
SCSS
$custom: #332687;
$custom-light: #7562ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332687",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 248.041,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.15332,
    "h": 281.2
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#332687
secondary
#A8B554
accent
#DF48CB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332687

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

Preview Lab → · Contrast checker → · Palette generator →

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