#342BA6#342BA6

#342BA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.187 H 276.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#342BA6
RGBrgb(52, 43, 166)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 74%, 65%)
CMYKcmyk(68.7%, 74.1%, 0%, 34.9%)
CIE-LABlab(27.33, 42.50, -64.35)
CIE-LCHlch(27.33, 77.12, 303.44°)
OKLaboklab(39.18% 0.0215 -0.1859)
OKLCHoklch(39.18% 0.187 276.6)
XYZxyz(9.1607, 5.2102, 36.5919)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA6 #9DA62B
analogous
#2B5FA6 #342BA6 #712BA6
triadic
#342BA6 #A6342B #2BA634
tetradic
#342BA6 #A62B5F #9DA62B #2BA671
square
#342BA6 #A62B5F #9DA62B #2BA671
split-complementary
#342BA6 #A6712B #5FA62B
monochromatic
#161245 #251E75 #342BA6 #4B41CE #7971DA

Accessibility & contrast

On white

10.28
#342BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BA6
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA6#FFFFFF#000000##FFFFFF
##342BA61.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ba6;
/* rgb */ color: rgb(52, 43, 166);
/* oklch */ color: oklch(39.2% 0.187 276.6);
Tailwind
colors: {
  custom: {
    50: '#7c66c2',
    500: '#342ba6',
    950: '#000000',
  },
}
SCSS
$custom: #342ba6;
$custom-light: #7c66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba6",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 244.39,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.3918,
    "c": 0.18718,
    "h": 276.6
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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