#332FAE#332FAE

#332FAE is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.193 H 274.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#332FAE
RGBrgb(51, 47, 174)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 73%, 68%)
CMYKcmyk(70.7%, 73%, 0%, 31.8%)
CIE-LABlab(28.88, 42.74, -66.60)
CIE-LCHlch(28.88, 79.14, 302.69°)
OKLaboklab(40.51% 0.0164 -0.1926)
OKLCHoklch(40.51% 0.193 274.9)
XYZxyz(10.0192, 5.7919, 40.6261)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FAE #AAAE2F
analogous
#2F6AAE #332FAE #722FAE
triadic
#332FAE #AE332F #2FAE33
tetradic
#332FAE #AE2F6A #AAAE2F #2FAE72
square
#332FAE #AE2F6A #AAAE2F #2FAE72
split-complementary
#332FAE #AE722F #6AAE2F
monochromatic
#17154E #25227E #332FAE #504CCF #7F7CDC

Accessibility & contrast

On white

9.73
#332FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#332FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FAE
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FAE#FFFFFF#000000##FFFFFF
##332FAE1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332fae;
/* rgb */ color: rgb(51, 47, 174);
/* oklch */ color: oklch(40.5% 0.193 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d69c7',
    500: '#332fae',
    950: '#000000',
  },
}
SCSS
$custom: #332fae;
$custom-light: #7d69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#332fae",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 241.89,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40511,
    "c": 0.19325,
    "h": 274.9
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#332FAE
secondary
#C2C475
accent
#E147DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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