#3342AA#3342AA

#3342AA is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.166 H 271.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#3342AA
RGBrgb(51, 66, 170)
HSLhsl(232, 54%, 43%)
HSVhsv(232, 70%, 67%)
CMYKcmyk(70%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.92, 29.55, -57.58)
CIE-LCHlch(32.92, 64.72, 297.16°)
OKLaboklab(43.34% 0.0039 -0.1661)
OKLCHoklch(43.34% 0.166 271.3)
XYZxyz(10.5667, 7.5015, 38.9135)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342AA #AA9B33
analogous
#337DAA #3342AA #5F33AA
triadic
#3342AA #AA3342 #42AA33
tetradic
#3342AA #AA337D #AA9B33 #33AA5F
square
#3342AA #AA337D #AA9B33 #33AA5F
split-complementary
#3342AA #AA5F33 #7DAA33
monochromatic
#171D4C #25307B #3342AA #505FCA #7F8AD9

Accessibility & contrast

On white

8.40
#3342AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3342AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342AA
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342AA#FFFFFF#000000##FFFFFF
##3342AA1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3342aa;
/* rgb */ color: rgb(51, 66, 170);
/* oklch */ color: oklch(43.3% 0.166 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a76c4',
    500: '#3342aa',
    950: '#000000',
  },
}
SCSS
$custom: #3342aa;
$custom-light: #7a76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3342aa",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 232.437,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.16614,
    "h": 271.3
  },
  "luminance": 0.07503
}

Semantic roles & 50–950 ramp

primary
#3342AA
secondary
#C2B877
accent
#CB4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3342AA

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

Preview Lab → · Contrast checker → · Palette generator →

#3342AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva