#332598#332598

#332598 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.176 H 278.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#332598
RGBrgb(51, 37, 152)
HSLhsl(247, 61%, 37%)
HSVhsv(247, 76%, 60%)
CMYKcmyk(66.4%, 75.7%, 0%, 40.4%)
CIE-LABlab(24.62, 41.20, -60.29)
CIE-LCHlch(24.62, 73.02, 304.35°)
OKLaboklab(36.81% 0.0269 -0.1741)
OKLCHoklch(36.81% 0.176 278.8)
XYZxyz(7.6925, 4.2933, 30.1230)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332598 #8A9825
analogous
#255198 #332598 #6C2598
triadic
#332598 #983325 #259833
tetradic
#332598 #982551 #8A9825 #25986C
square
#332598 #982551 #8A9825 #25986C
split-complementary
#332598 #986C25 #519825
monochromatic
#120D36 #221967 #332598 #4431C9 #6E5FD8

Accessibility & contrast

On white

11.30
#332598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#332598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332598
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332598#FFFFFF#000000##FFFFFF
##3325981.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332598;
/* rgb */ color: rgb(51, 37, 152);
/* oklch */ color: oklch(36.8% 0.176 278.8);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#332598',
    950: '#000000',
  },
}
SCSS
$custom: #332598;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332598",
  "rgb": {
    "r": 51,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 247.304,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.17614,
    "h": 278.8
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#332598
secondary
#B1BD5C
accent
#E444D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332598

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

Preview Lab → · Contrast checker → · Palette generator →

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