#342FA0#342FA0

#342FA0 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.175 H 276.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#342FA0
RGBrgb(52, 47, 160)
HSLhsl(243, 55%, 41%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(67.5%, 70.6%, 0%, 37.3%)
CIE-LABlab(27.57, 38.17, -60.31)
CIE-LCHlch(27.57, 71.37, 302.33°)
OKLaboklab(39.18% 0.02 -0.1741)
OKLCHoklch(39.18% 0.175 276.6)
XYZxyz(8.7758, 5.3004, 33.8115)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA0 #9BA02F
analogous
#2F62A0 #342FA0 #6C2FA0
triadic
#342FA0 #A0342F #2FA034
tetradic
#342FA0 #A02F62 #9BA02F #2FA06C
square
#342FA0 #A02F62 #9BA02F #2FA06C
split-complementary
#342FA0 #A06C2F #62A02F
monochromatic
#151341 #252171 #342FA0 #4A44C8 #7873D6

Accessibility & contrast

On white

10.19
#342FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA0
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA0#FFFFFF#000000##FFFFFF
##342FA01.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342fa0;
/* rgb */ color: rgb(52, 47, 160);
/* oklch */ color: oklch(39.2% 0.175 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a69bd',
    500: '#342fa0',
    950: '#000000',
  },
}
SCSS
$custom: #342fa0;
$custom-light: #7a69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa0",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 242.655,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39178,
    "c": 0.17529,
    "h": 276.6
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#342FA0
secondary
#BABE6D
accent
#DE4AD7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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