#332896#332896

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

Color values

HEX#332896
RGBrgb(51, 40, 150)
HSLhsl(246, 58%, 37%)
HSVhsv(246, 73%, 59%)
CMYKcmyk(66%, 73.3%, 0%, 41.2%)
CIE-LABlab(25.02, 38.84, -58.39)
CIE-LCHlch(25.02, 70.13, 303.63°)
OKLaboklab(37.04% 0.0253 -0.1686)
OKLCHoklch(37.04% 0.17 278.5)
XYZxyz(7.6273, 4.4228, 29.3000)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332896 #8B9628
analogous
#285496 #332896 #6A2896
triadic
#332896 #963328 #289633
tetradic
#332896 #962854 #8B9628 #28966A
square
#332896 #962854 #8B9628 #28966A
split-complementary
#332896 #966A28 #549628
monochromatic
#120E35 #231B66 #332896 #4335C6 #6E63D5

Accessibility & contrast

On white

11.14
#332896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332896
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332896#FFFFFF#000000##FFFFFF
##3328961.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332896;
/* rgb */ color: rgb(51, 40, 150);
/* oklch */ color: oklch(37.0% 0.170 278.5);
Tailwind
colors: {
  custom: {
    50: '#7864b6',
    500: '#332896',
    950: '#000000',
  },
}
SCSS
$custom: #332896;
$custom-light: #7864b6;
$custom-dark: #000000;
JSON
{
  "hex": "#332896",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 246,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37038,
    "c": 0.17045,
    "h": 278.5
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#332896
secondary
#B2BB5F
accent
#E147D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332896

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

Preview Lab → · Contrast checker → · Palette generator →

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