#3342A2#3342A2

#3342A2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.155 H 271.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#3342A2
RGBrgb(51, 66, 162)
HSLhsl(232, 52%, 42%)
HSVhsv(232, 69%, 64%)
CMYKcmyk(68.5%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.28, 26.64, -53.83)
CIE-LCHlch(32.28, 60.06, 296.32°)
OKLaboklab(42.66% 0.0039 -0.1551)
OKLCHoklch(42.66% 0.155 271.4)
XYZxyz(9.8328, 7.2079, 35.0485)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342A2 #A29333
analogous
#337AA2 #3342A2 #5C33A2
triadic
#3342A2 #A23342 #42A233
tetradic
#3342A2 #A2337A #A29333 #33A25C
square
#3342A2 #A2337A #A29333 #33A25C
split-complementary
#3342A2 #A25C33 #7AA233
monochromatic
#161C45 #242F73 #3342A2 #4C5CC7 #7A87D5

Accessibility & contrast

On white

8.60
#3342A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3342A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3342A2#FFFFFF#000000##FFFFFF
##3342A21.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3342a2;
/* rgb */ color: rgb(51, 66, 162);
/* oklch */ color: oklch(42.7% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#7976be',
    500: '#3342a2',
    950: '#000000',
  },
}
SCSS
$custom: #3342a2;
$custom-light: #7976be;
$custom-dark: #000000;
JSON
{
  "hex": "#3342a2",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 231.892,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.15513,
    "h": 271.4
  },
  "luminance": 0.07209
}

Semantic roles & 50–950 ramp

primary
#3342A2
secondary
#BEB473
accent
#C84CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3342A2

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

Preview Lab → · Contrast checker → · Palette generator →

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