#332894#332894

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

Color values

HEX#332894
RGBrgb(51, 40, 148)
HSLhsl(246, 57%, 37%)
HSVhsv(246, 73%, 58%)
CMYKcmyk(65.5%, 73%, 0%, 42%)
CIE-LABlab(24.82, 38.18, -57.49)
CIE-LCHlch(24.82, 69.01, 303.59°)
OKLaboklab(36.84% 0.0257 -0.1659)
OKLCHoklch(36.84% 0.168 278.8)
XYZxyz(7.4676, 4.3589, 28.4591)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332894 #899428
analogous
#285394 #332894 #692894
triadic
#332894 #943328 #289433
tetradic
#332894 #942853 #899428 #289469
square
#332894 #942853 #899428 #289469
split-complementary
#332894 #946928 #539428
monochromatic
#120E34 #221B64 #332894 #4435C4 #6E62D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332894#FFFFFF#000000##FFFFFF
##3328941.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)
#003F97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332894;
/* rgb */ color: rgb(51, 40, 148);
/* oklch */ color: oklch(36.8% 0.168 278.8);
Tailwind
colors: {
  custom: {
    50: '#7863b4',
    500: '#332894',
    950: '#000000',
  },
}
SCSS
$custom: #332894;
$custom-light: #7863b4;
$custom-dark: #000000;
JSON
{
  "hex": "#332894",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 246.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.1679,
    "h": 278.8
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#332894
secondary
#B1BA5E
accent
#E147D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332894

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

Preview Lab → · Contrast checker → · Palette generator →

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