#332EAA#332EAA

#332EAA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.189 H 275.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#332EAA
RGBrgb(51, 46, 170)
HSLhsl(242, 57%, 42%)
HSVhsv(242, 73%, 67%)
CMYKcmyk(70%, 72.9%, 0%, 33.3%)
CIE-LABlab(28.27, 41.99, -65.21)
CIE-LCHlch(28.27, 77.55, 302.78°)
OKLaboklab(39.96% 0.0177 -0.1885)
OKLCHoklch(39.96% 0.189 275.4)
XYZxyz(9.5955, 5.5592, 38.5898)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EAA #A5AA2E
analogous
#2E67AA #332EAA #712EAA
triadic
#332EAA #AA332E #2EAA33
tetradic
#332EAA #AA2E67 #A5AA2E #2EAA71
square
#332EAA #AA2E67 #A5AA2E #2EAA71
split-complementary
#332EAA #AA712E #67AA2E
monochromatic
#16144A #25217A #332EAA #4D48CD #7C78DA

Accessibility & contrast

On white

9.94
#332EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#332EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EAA
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EAA#FFFFFF#000000##FFFFFF
##332EAA1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332eaa;
/* rgb */ color: rgb(51, 46, 170);
/* oklch */ color: oklch(40.0% 0.189 275.4);
Tailwind
colors: {
  custom: {
    50: '#7c68c4',
    500: '#332eaa',
    950: '#000000',
  },
}
SCSS
$custom: #332eaa;
$custom-light: #7c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#332eaa",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 242.419,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39956,
    "c": 0.18931,
    "h": 275.4
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#332EAA
secondary
#BFC371
accent
#E147DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EAA

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

Preview Lab → · Contrast checker → · Palette generator →

#332EAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva