#342CB5#342CB5

#342CB5 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.205 H 275.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#342CB5
RGBrgb(52, 44, 181)
HSLhsl(244, 61%, 44%)
HSVhsv(244, 76%, 71%)
CMYKcmyk(71.3%, 75.7%, 0%, 29%)
CIE-LABlab(29.07, 46.80, -70.46)
CIE-LCHlch(29.07, 84.59, 303.59°)
OKLaboklab(40.88% 0.0178 -0.2037)
OKLCHoklch(40.88% 0.205 275)
XYZxyz(10.6546, 5.8666, 44.2780)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB5 #ADB52C
analogous
#2C69B5 #342CB5 #792CB5
triadic
#342CB5 #B5342C #2CB534
tetradic
#342CB5 #B52C69 #ADB52C #2CB579
square
#342CB5 #B52C69 #ADB52C #2CB579
split-complementary
#342CB5 #B5792C #69B52C
monochromatic
#181453 #262084 #342CB5 #534BD3 #827CDF

Accessibility & contrast

On white

9.66
#342CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#342CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CB5
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CB5#FFFFFF#000000##FFFFFF
##342CB51.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342cb5;
/* rgb */ color: rgb(52, 44, 181);
/* oklch */ color: oklch(40.9% 0.205 275.0);
Tailwind
colors: {
  custom: {
    50: '#7f68cc',
    500: '#342cb5',
    950: '#000000',
  },
}
SCSS
$custom: #342cb5;
$custom-light: #7f68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb5",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 243.504,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4088,
    "c": 0.20453,
    "h": 275
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#342CB5
secondary
#C3C875
accent
#E444DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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