#342BA4#342BA4

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

Color values

HEX#342BA4
RGBrgb(52, 43, 164)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(68.3%, 73.8%, 0%, 35.7%)
CIE-LABlab(27.12, 41.84, -63.48)
CIE-LCHlch(27.12, 76.03, 303.39°)
OKLaboklab(38.98% 0.0219 -0.1834)
OKLCHoklch(38.98% 0.185 276.8)
XYZxyz(8.9787, 5.1374, 35.6332)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA4 #9BA42B
analogous
#2B5EA4 #342BA4 #702BA4
triadic
#342BA4 #A4342B #2BA434
tetradic
#342BA4 #A42B5E #9BA42B #2BA470
square
#342BA4 #A42B5E #9BA42B #2BA470
split-complementary
#342BA4 #A4702B #5EA42B
monochromatic
#151243 #251E74 #342BA4 #4A3FCD #7870D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342BA4#FFFFFF#000000##FFFFFF
##342BA41.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)
#0045A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342ba4;
/* rgb */ color: rgb(52, 43, 164);
/* oklch */ color: oklch(39.0% 0.185 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b66c0',
    500: '#342ba4',
    950: '#000000',
  },
}
SCSS
$custom: #342ba4;
$custom-light: #7b66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba4",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 244.463,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38975,
    "c": 0.18469,
    "h": 276.8
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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