#332AAF#332AAF

#332AAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.199 H 275.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#332AAF
RGBrgb(51, 42, 175)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(70.9%, 76%, 0%, 31.4%)
CIE-LABlab(27.99, 45.86, -68.67)
CIE-LCHlch(27.99, 82.58, 303.74°)
OKLaboklab(39.91% 0.0188 -0.1985)
OKLCHoklch(39.91% 0.199 275.4)
XYZxyz(9.9285, 5.4539, 41.0786)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AAF #A6AF2A
analogous
#2A64AF #332AAF #752AAF
triadic
#332AAF #AF332A #2AAF33
tetradic
#332AAF #AF2A64 #A6AF2A #2AAF75
square
#332AAF #AF2A64 #A6AF2A #2AAF75
split-complementary
#332AAF #AF752A #64AF2A
monochromatic
#16124C #251E7E #332AAF #4E44D2 #7C75DE

Accessibility & contrast

On white

10.04
#332AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#332AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AAF
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AAF#FFFFFF#000000##FFFFFF
##332AAF1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332aaf;
/* rgb */ color: rgb(51, 42, 175);
/* oklch */ color: oklch(39.9% 0.199 275.4);
Tailwind
colors: {
  custom: {
    50: '#7e66c8',
    500: '#332aaf',
    950: '#000000',
  },
}
SCSS
$custom: #332aaf;
$custom-light: #7e66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#332aaf",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 244.06,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.3991,
    "c": 0.19943,
    "h": 275.4
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#332AAF
secondary
#C0C66F
accent
#E443DA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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