#332EB0#332EB0

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

Color values

HEX#332EB0
RGBrgb(51, 46, 176)
HSLhsl(242, 59%, 44%)
HSVhsv(242, 74%, 69%)
CMYKcmyk(71%, 73.9%, 0%, 31%)
CIE-LABlab(28.88, 43.97, -67.80)
CIE-LCHlch(28.88, 80.81, 302.97°)
OKLaboklab(40.57% 0.0166 -0.196)
OKLCHoklch(40.57% 0.197 274.8)
XYZxyz(10.1761, 5.7914, 41.6474)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EB0 #ABB02E
analogous
#2E6AB0 #332EB0 #742EB0
triadic
#332EB0 #B0332E #2EB033
tetradic
#332EB0 #B02E6A #ABB02E #2EB074
square
#332EB0 #B02E6A #ABB02E #2EB074
split-complementary
#332EB0 #B0742E #6AB02E
monochromatic
#17154F #25217F #332EB0 #504BD0 #7F7CDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332EB0#FFFFFF#000000##FFFFFF
##332EB01.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)
#004AB4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332eb0;
/* rgb */ color: rgb(51, 46, 176);
/* oklch */ color: oklch(40.6% 0.197 274.8);
Tailwind
colors: {
  custom: {
    50: '#7d68c9',
    500: '#332eb0',
    950: '#000000',
  },
}
SCSS
$custom: #332eb0;
$custom-light: #7d68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#332eb0",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 242.308,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40571,
    "c": 0.19674,
    "h": 274.8
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#332EB0
secondary
#C2C575
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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