#342CA5#342CA5

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

Color values

HEX#342CA5
RGBrgb(52, 44, 165)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 73%, 65%)
CMYKcmyk(68.5%, 73.3%, 0%, 35.3%)
CIE-LABlab(27.43, 41.60, -63.58)
CIE-LCHlch(27.43, 75.98, 303.20°)
OKLaboklab(39.22% 0.0211 -0.1837)
OKLCHoklch(39.22% 0.185 276.5)
XYZxyz(9.1062, 5.2472, 36.1229)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA5 #9DA52C
analogous
#2C60A5 #342CA5 #702CA5
triadic
#342CA5 #A5342C #2CA534
tetradic
#342CA5 #A52C60 #9DA52C #2CA570
square
#342CA5 #A52C60 #9DA52C #2CA570
split-complementary
#342CA5 #A5702C #60A52C
monochromatic
#161244 #251F75 #342CA5 #4B42CD #7972D9

Accessibility & contrast

On white

10.25
#342CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#342CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA5
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA5#FFFFFF#000000##FFFFFF
##342CA51.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ca5;
/* rgb */ color: rgb(52, 44, 165);
/* oklch */ color: oklch(39.2% 0.185 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c67c1',
    500: '#342ca5',
    950: '#000000',
  },
}
SCSS
$custom: #342ca5;
$custom-light: #7c67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca5",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 243.967,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39222,
    "c": 0.1849,
    "h": 276.5
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#342CA5
secondary
#BBC16C
accent
#E147D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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