#342FA1#342FA1

#342FA1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.177 H 276.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#342FA1
RGBrgb(52, 47, 161)
HSLhsl(243, 55%, 41%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(67.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.67, 38.51, -60.76)
CIE-LCHlch(27.67, 71.93, 302.37°)
OKLaboklab(39.28% 0.0198 -0.1755)
OKLCHoklch(39.28% 0.177 276.5)
XYZxyz(8.8636, 5.3355, 34.2741)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA1 #9CA12F
analogous
#2F63A1 #342FA1 #6D2FA1
triadic
#342FA1 #A1342F #2FA134
tetradic
#342FA1 #A12F63 #9CA12F #2FA16D
square
#342FA1 #A12F63 #9CA12F #2FA16D
split-complementary
#342FA1 #A16D2F #63A12F
monochromatic
#151342 #252172 #342FA1 #4A45C9 #7874D6

Accessibility & contrast

On white

10.16
#342FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#342FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA1
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA1#FFFFFF#000000##FFFFFF
##342FA11.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342fa1;
/* rgb */ color: rgb(52, 47, 161);
/* oklch */ color: oklch(39.3% 0.177 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a69be',
    500: '#342fa1',
    950: '#000000',
  },
}
SCSS
$custom: #342fa1;
$custom-light: #7a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa1",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 242.632,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39276,
    "c": 0.17658,
    "h": 276.5
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#342FA1
secondary
#BBBE6E
accent
#DE4AD8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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