#332698#332698

#332698 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.175 H 278.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#332698
RGBrgb(51, 38, 152)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 60%)
CMYKcmyk(66.4%, 75%, 0%, 40.4%)
CIE-LABlab(24.82, 40.64, -59.96)
CIE-LCHlch(24.82, 72.44, 304.13°)
OKLaboklab(36.95% 0.0262 -0.1731)
OKLCHoklch(36.95% 0.175 278.6)
XYZxyz(7.7240, 4.3564, 30.1335)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332698 #8B9826
analogous
#265298 #332698 #6C2698
triadic
#332698 #983326 #269833
tetradic
#332698 #982652 #8B9826 #26986C
square
#332698 #982652 #8B9826 #26986C
split-complementary
#332698 #986C26 #529826
monochromatic
#120E36 #231A67 #332698 #4332C9 #6E61D7

Accessibility & contrast

On white

11.22
#332698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#332698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332698
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332698#FFFFFF#000000##FFFFFF
##3326981.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332698;
/* rgb */ color: rgb(51, 38, 152);
/* oklch */ color: oklch(37.0% 0.175 278.6);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#332698',
    950: '#000000',
  },
}
SCSS
$custom: #332698;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332698",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 246.842,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36952,
    "c": 0.1751,
    "h": 278.6
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#332698
secondary
#B2BD5D
accent
#E345D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332698

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

Preview Lab → · Contrast checker → · Palette generator →

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