#332398#332398

#332398 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.178 H 279.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#332398
RGBrgb(51, 35, 152)
HSLhsl(248, 63%, 37%)
HSVhsv(248, 77%, 60%)
CMYKcmyk(66.4%, 77%, 0%, 40.4%)
CIE-LABlab(24.23, 42.29, -60.92)
CIE-LCHlch(24.23, 74.16, 304.77°)
OKLaboklab(36.54% 0.0281 -0.1759)
OKLCHoklch(36.54% 0.178 279.1)
XYZxyz(7.6320, 4.1722, 30.1028)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332398 #889823
analogous
#234E98 #332398 #6E2398
triadic
#332398 #983323 #239833
tetradic
#332398 #98234E #889823 #23986E
square
#332398 #98234E #889823 #23986E
split-complementary
#332398 #986E23 #4E9823
monochromatic
#120C35 #221866 #332398 #442ECA #6D5CD9

Accessibility & contrast

On white

11.45
#332398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332398
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332398#FFFFFF#000000##FFFFFF
##3323981.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332398;
/* rgb */ color: rgb(51, 35, 152);
/* oklch */ color: oklch(36.5% 0.178 279.1);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#332398',
    950: '#000000',
  },
}
SCSS
$custom: #332398;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332398",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 248.205,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36541,
    "c": 0.17814,
    "h": 279.1
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#332398
secondary
#B0BE59
accent
#E642CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332398

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

Preview Lab → · Contrast checker → · Palette generator →

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