#342FB4#342FB4

#342FB4 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.2% C 0.200 H 274.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#342FB4
RGBrgb(52, 47, 180)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 71%)
CMYKcmyk(71.1%, 73.9%, 0%, 29.4%)
CIE-LABlab(29.56, 44.82, -69.07)
CIE-LCHlch(29.56, 82.34, 302.98°)
OKLaboklab(41.19% 0.0165 -0.1997)
OKLCHoklch(41.19% 0.2 274.7)
XYZxyz(10.6682, 6.0574, 43.7781)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB4 #AFB42F
analogous
#2F6CB4 #342FB4 #772FB4
triadic
#342FB4 #B4342F #2FB434
tetradic
#342FB4 #B42F6C #AFB42F #2FB477
square
#342FB4 #B42F6C #AFB42F #2FB477
split-complementary
#342FB4 #B4772F #6CB42F
monochromatic
#181653 #262283 #342FB4 #544FD1 #8380DE

Accessibility & contrast

On white

9.50
#342FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#342FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB4
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB4#FFFFFF#000000##FFFFFF
##342FB41.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342fb4;
/* rgb */ color: rgb(52, 47, 180);
/* oklch */ color: oklch(41.2% 0.200 274.7);
Tailwind
colors: {
  custom: {
    50: '#7f69cc',
    500: '#342fb4',
    950: '#000000',
  },
}
SCSS
$custom: #342fb4;
$custom-light: #7f69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb4",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 242.256,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41191,
    "c": 0.2004,
    "h": 274.7
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#342FB4
secondary
#C4C778
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #342FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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