#342AA6#342AA6

#342AA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.188 H 276.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#342AA6
RGBrgb(52, 42, 166)
HSLhsl(245, 60%, 41%)
HSVhsv(245, 75%, 65%)
CMYKcmyk(68.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(27.13, 43.06, -64.68)
CIE-LCHlch(27.13, 77.70, 303.65°)
OKLaboklab(39.04% 0.0221 -0.1869)
OKLCHoklch(39.04% 0.188 276.7)
XYZxyz(9.1248, 5.1384, 36.5799)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA6 #9CA62A
analogous
#2A5EA6 #342AA6 #722AA6
triadic
#342AA6 #A6342A #2AA634
tetradic
#342AA6 #A62A5E #9CA62A #2AA672
square
#342AA6 #A62A5E #9CA62A #2AA672
split-complementary
#342AA6 #A6722A #5EA62A
monochromatic
#151144 #251E75 #342AA6 #4A3FCE #7870DB

Accessibility & contrast

On white

10.36
#342AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#342AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA6
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA6#FFFFFF#000000##FFFFFF
##342AA61.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342aa6;
/* rgb */ color: rgb(52, 42, 166);
/* oklch */ color: oklch(39.0% 0.188 276.7);
Tailwind
colors: {
  custom: {
    50: '#7c66c2',
    500: '#342aa6',
    950: '#000000',
  },
}
SCSS
$custom: #342aa6;
$custom-light: #7c66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa6",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 244.839,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.1882,
    "h": 276.7
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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