#342FB5#342FB5

#342FB5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.202 H 274.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#342FB5
RGBrgb(52, 47, 181)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 71%)
CMYKcmyk(71.3%, 74%, 0%, 29%)
CIE-LABlab(29.66, 45.15, -69.50)
CIE-LCHlch(29.66, 82.87, 303.01°)
OKLaboklab(41.29% 0.0163 -0.201)
OKLCHoklch(41.29% 0.202 274.6)
XYZxyz(10.7704, 6.0982, 44.3166)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB5 #B0B52F
analogous
#2F6DB5 #342FB5 #772FB5
triadic
#342FB5 #B5342F #2FB534
tetradic
#342FB5 #B52F6D #B0B52F #2FB577
square
#342FB5 #B52F6D #B0B52F #2FB577
split-complementary
#342FB5 #B5772F #6DB52F
monochromatic
#181654 #262284 #342FB5 #5550D1 #8480DE

Accessibility & contrast

On white

9.46
#342FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#342FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB5
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB5#FFFFFF#000000##FFFFFF
##342FB51.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342fb5;
/* rgb */ color: rgb(52, 47, 181);
/* oklch */ color: oklch(41.3% 0.202 274.6);
Tailwind
colors: {
  custom: {
    50: '#7f69cc',
    500: '#342fb5',
    950: '#000000',
  },
}
SCSS
$custom: #342fb5;
$custom-light: #7f69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb5",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 242.239,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.20162,
    "h": 274.6
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#342FB5
secondary
#C4C779
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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