#342BA5#342BA5

#342BA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.186 H 276.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#342BA5
RGBrgb(52, 43, 165)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 74%, 65%)
CMYKcmyk(68.5%, 73.9%, 0%, 35.3%)
CIE-LABlab(27.22, 42.17, -63.91)
CIE-LCHlch(27.22, 76.57, 303.42°)
OKLaboklab(39.08% 0.0217 -0.1847)
OKLCHoklch(39.08% 0.186 276.7)
XYZxyz(9.0694, 5.1736, 36.1107)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA5 #9CA52B
analogous
#2B5FA5 #342BA5 #712BA5
triadic
#342BA5 #A5342B #2BA534
tetradic
#342BA5 #A52B5F #9CA52B #2BA571
square
#342BA5 #A52B5F #9CA52B #2BA571
split-complementary
#342BA5 #A5712B #5FA52B
monochromatic
#151244 #251E74 #342BA5 #4A40CD #7871DA

Accessibility & contrast

On white

10.32
#342BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342BA5
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA5#FFFFFF#000000##FFFFFF
##342BA51.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ba5;
/* rgb */ color: rgb(52, 43, 165);
/* oklch */ color: oklch(39.1% 0.186 276.7);
Tailwind
colors: {
  custom: {
    50: '#7c66c1',
    500: '#342ba5',
    950: '#000000',
  },
}
SCSS
$custom: #342ba5;
$custom-light: #7c66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba5",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 244.426,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.18594,
    "h": 276.7
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#342BA5
secondary
#BBC16B
accent
#E246D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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