#342AA5#342AA5

#342AA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.187 H 276.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#342AA5
RGBrgb(52, 42, 165)
HSLhsl(245, 59%, 41%)
HSVhsv(245, 75%, 65%)
CMYKcmyk(68.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(27.02, 42.74, -64.25)
CIE-LCHlch(27.02, 77.16, 303.63°)
OKLaboklab(38.93% 0.0223 -0.1856)
OKLCHoklch(38.93% 0.187 276.9)
XYZxyz(9.0335, 5.1018, 36.0987)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA5 #9BA52A
analogous
#2A5DA5 #342AA5 #712AA5
triadic
#342AA5 #A5342A #2AA534
tetradic
#342AA5 #A52A5D #9BA52A #2AA571
square
#342AA5 #A52A5D #9BA52A #2AA571
split-complementary
#342AA5 #A5712A #5DA52A
monochromatic
#151143 #251E74 #342AA5 #4A3ECE #786FDA

Accessibility & contrast

On white

10.39
#342AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#342AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA5
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA5#FFFFFF#000000##FFFFFF
##342AA51.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342aa5;
/* rgb */ color: rgb(52, 42, 165);
/* oklch */ color: oklch(38.9% 0.187 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c66c1',
    500: '#342aa5',
    950: '#000000',
  },
}
SCSS
$custom: #342aa5;
$custom-light: #7c66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa5",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 244.878,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38934,
    "c": 0.18696,
    "h": 276.9
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#342AA5
secondary
#BAC169
accent
#E345D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342AA5

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

Preview Lab → · Contrast checker → · Palette generator →

#342AA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva