#342FA7#342FA7

#342FA7 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.184 H 275.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#342FA7
RGBrgb(52, 47, 167)
HSLhsl(243, 56%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(28.25, 40.52, -63.43)
CIE-LCHlch(28.25, 75.27, 302.57°)
OKLaboklab(39.87% 0.0189 -0.1833)
OKLCHoklch(39.87% 0.184 275.9)
XYZxyz(9.4055, 5.5523, 37.1278)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA7 #A2A72F
analogous
#2F66A7 #342FA7 #702FA7
triadic
#342FA7 #A7342F #2FA734
tetradic
#342FA7 #A72F66 #A2A72F #2FA770
square
#342FA7 #A72F66 #A2A72F #2FA770
split-complementary
#342FA7 #A7702F #66A72F
monochromatic
#161447 #252277 #342FA7 #4D48CB #7C78D9

Accessibility & contrast

On white

9.95
#342FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#342FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA7
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA7#FFFFFF#000000##FFFFFF
##342FA71.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342fa7;
/* rgb */ color: rgb(52, 47, 167);
/* oklch */ color: oklch(39.9% 0.184 275.9);
Tailwind
colors: {
  custom: {
    50: '#7c69c2',
    500: '#342fa7',
    950: '#000000',
  },
}
SCSS
$custom: #342fa7;
$custom-light: #7c69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa7",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 242.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39871,
    "c": 0.18423,
    "h": 275.9
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#342FA7
secondary
#BEC171
accent
#DF48D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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