#342FA8#342FA8

#342FA8 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.185 H 275.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#342FA8
RGBrgb(52, 47, 168)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 66%)
CMYKcmyk(69%, 72%, 0%, 34.1%)
CIE-LABlab(28.35, 40.85, -63.87)
CIE-LCHlch(28.35, 75.82, 302.61°)
OKLaboklab(39.97% 0.0187 -0.1845)
OKLCHoklch(39.97% 0.185 275.8)
XYZxyz(9.4983, 5.5894, 37.6165)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA8 #A3A82F
analogous
#2F67A8 #342FA8 #702FA8
triadic
#342FA8 #A8342F #2FA834
tetradic
#342FA8 #A82F67 #A3A82F #2FA870
square
#342FA8 #A82F67 #A3A82F #2FA870
split-complementary
#342FA8 #A8702F #67A82F
monochromatic
#161448 #252278 #342FA8 #4E48CC #7C78D9

Accessibility & contrast

On white

9.92
#342FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#342FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA8
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA8#FFFFFF#000000##FFFFFF
##342FA81.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342fa8;
/* rgb */ color: rgb(52, 47, 168);
/* oklch */ color: oklch(40.0% 0.185 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c69c3',
    500: '#342fa8',
    950: '#000000',
  },
}
SCSS
$custom: #342fa8;
$custom-light: #7c69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa8",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 242.479,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39971,
    "c": 0.18549,
    "h": 275.8
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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