#332EAC#332EAC

#332EAC is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.2% C 0.192 H 275.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#332EAC
RGBrgb(51, 46, 172)
HSLhsl(242, 58%, 43%)
HSVhsv(242, 73%, 67%)
CMYKcmyk(70.3%, 73.3%, 0%, 32.5%)
CIE-LABlab(28.47, 42.65, -66.07)
CIE-LCHlch(28.47, 78.65, 302.84°)
OKLaboklab(40.16% 0.0173 -0.191)
OKLCHoklch(40.16% 0.192 275.2)
XYZxyz(9.7862, 5.6354, 39.5937)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EAC #A7AC2E
analogous
#2E68AC #332EAC #722EAC
triadic
#332EAC #AC332E #2EAC33
tetradic
#332EAC #AC2E68 #A7AC2E #2EAC72
square
#332EAC #AC2E68 #A7AC2E #2EAC72
split-complementary
#332EAC #AC722E #68AC2E
monochromatic
#16144B #25217C #332EAC #4E49CE #7D79DB

Accessibility & contrast

On white

9.87
#332EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#332EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EAC
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EAC#FFFFFF#000000##FFFFFF
##332EAC1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332eac;
/* rgb */ color: rgb(51, 46, 172);
/* oklch */ color: oklch(40.2% 0.192 275.2);
Tailwind
colors: {
  custom: {
    50: '#7d68c6',
    500: '#332eac',
    950: '#000000',
  },
}
SCSS
$custom: #332eac;
$custom-light: #7d68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#332eac",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 242.381,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.19179,
    "h": 275.2
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#332EAC
secondary
#C0C372
accent
#E147DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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