#342FA9#342FA9

#342FA9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.187 H 275.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#342FA9
RGBrgb(52, 47, 169)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 66%)
CMYKcmyk(69.2%, 72.2%, 0%, 33.7%)
CIE-LABlab(28.45, 41.19, -64.31)
CIE-LCHlch(28.45, 76.37, 302.64°)
OKLaboklab(40.07% 0.0185 -0.1858)
OKLCHoklch(40.07% 0.187 275.7)
XYZxyz(9.5918, 5.6268, 38.1090)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA9 #A4A92F
analogous
#2F67A9 #342FA9 #712FA9
triadic
#342FA9 #A9342F #2FA934
tetradic
#342FA9 #A92F67 #A4A92F #2FA971
square
#342FA9 #A92F67 #A4A92F #2FA971
split-complementary
#342FA9 #A9712F #67A92F
monochromatic
#171449 #252279 #342FA9 #4E49CC #7D79DA

Accessibility & contrast

On white

9.88
#342FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA9
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA9#FFFFFF#000000##FFFFFF
##342FA91.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342fa9;
/* rgb */ color: rgb(52, 47, 169);
/* oklch */ color: oklch(40.1% 0.187 275.7);
Tailwind
colors: {
  custom: {
    50: '#7c69c4',
    500: '#342fa9',
    950: '#000000',
  },
}
SCSS
$custom: #342fa9;
$custom-light: #7c69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa9",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 242.459,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40071,
    "c": 0.18675,
    "h": 275.7
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#342FA9
secondary
#BFC272
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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