#332893#332893

#332893 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.167 H 278.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#332893
RGBrgb(51, 40, 147)
HSLhsl(246, 57%, 37%)
HSVhsv(246, 73%, 58%)
CMYKcmyk(65.3%, 72.8%, 0%, 42.4%)
CIE-LABlab(24.73, 37.85, -57.03)
CIE-LCHlch(24.73, 68.45, 303.57°)
OKLaboklab(36.74% 0.0259 -0.1646)
OKLCHoklch(36.74% 0.167 278.9)
XYZxyz(7.3888, 4.3274, 28.0440)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332893 #889328
analogous
#285393 #332893 #692893
triadic
#332893 #933328 #289333
tetradic
#332893 #932853 #889328 #289369
square
#332893 #932853 #889328 #289369
split-complementary
#332893 #936928 #539328
monochromatic
#120E33 #221B63 #332893 #4435C3 #6D61D4

Accessibility & contrast

On white

11.26
#332893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332893
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332893#FFFFFF#000000##FFFFFF
##3328931.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332893;
/* rgb */ color: rgb(51, 40, 147);
/* oklch */ color: oklch(36.7% 0.167 278.9);
Tailwind
colors: {
  custom: {
    50: '#7863b4',
    500: '#332893',
    950: '#000000',
  },
}
SCSS
$custom: #332893;
$custom-light: #7863b4;
$custom-dark: #000000;
JSON
{
  "hex": "#332893",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 246.168,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36736,
    "c": 0.16661,
    "h": 278.9
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#332893
secondary
#B0BA5D
accent
#E047D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332893

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

Preview Lab → · Contrast checker → · Palette generator →

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