#332EAF#332EAF

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

Color values

HEX#332EAF
RGBrgb(51, 46, 175)
HSLhsl(242, 58%, 43%)
HSVhsv(242, 74%, 69%)
CMYKcmyk(70.9%, 73.7%, 0%, 31.4%)
CIE-LABlab(28.78, 43.64, -67.37)
CIE-LCHlch(28.78, 80.27, 302.94°)
OKLaboklab(40.47% 0.0167 -0.1948)
OKLCHoklch(40.47% 0.196 274.9)
XYZxyz(10.0775, 5.7520, 41.1283)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EAF #AAAF2E
analogous
#2E69AF #332EAF #742EAF
triadic
#332EAF #AF332E #2EAF33
tetradic
#332EAF #AF2E69 #AAAF2E #2EAF74
square
#332EAF #AF2E69 #AAAF2E #2EAF74
split-complementary
#332EAF #AF742E #69AF2E
monochromatic
#17154E #25217F #332EAF #504BD0 #7F7BDC

Accessibility & contrast

On white

9.76
#332EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#332EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EAF
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EAF#FFFFFF#000000##FFFFFF
##332EAF1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332eaf;
/* rgb */ color: rgb(51, 46, 175);
/* oklch */ color: oklch(40.5% 0.196 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d68c8',
    500: '#332eaf',
    950: '#000000',
  },
}
SCSS
$custom: #332eaf;
$custom-light: #7d68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#332eaf",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 242.326,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40467,
    "c": 0.19551,
    "h": 274.9
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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