#332898#332898

#332898 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.173 H 278.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#332898
RGBrgb(51, 40, 152)
HSLhsl(246, 58%, 38%)
HSVhsv(246, 74%, 60%)
CMYKcmyk(66.4%, 73.7%, 0%, 40.4%)
CIE-LABlab(25.22, 39.50, -59.29)
CIE-LCHlch(25.22, 71.25, 303.67°)
OKLaboklab(37.24% 0.0249 -0.1712)
OKLCHoklch(37.24% 0.173 278.3)
XYZxyz(7.7897, 4.4877, 30.1554)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332898 #8D9828
analogous
#285598 #332898 #6B2898
triadic
#332898 #983328 #289833
tetradic
#332898 #982855 #8D9828 #28986B
square
#332898 #982855 #8D9828 #28986B
split-complementary
#332898 #986B28 #559828
monochromatic
#120F37 #231B68 #332898 #4335C8 #6F64D6

Accessibility & contrast

On white

11.07
#332898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#332898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332898
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332898#FFFFFF#000000##FFFFFF
##3328981.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332898;
/* rgb */ color: rgb(51, 40, 152);
/* oklch */ color: oklch(37.2% 0.173 278.3);
Tailwind
colors: {
  custom: {
    50: '#7964b7',
    500: '#332898',
    950: '#000000',
  },
}
SCSS
$custom: #332898;
$custom-light: #7964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332898",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 245.893,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.17299,
    "h": 278.3
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#332898
secondary
#B3BC60
accent
#E246D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332898

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

Preview Lab → · Contrast checker → · Palette generator →

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