#342FA5#342FA5

#342FA5 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.182 H 276.1°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#342FA5
RGBrgb(52, 47, 165)
HSLhsl(243, 56%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(28.06, 39.85, -62.54)
CIE-LCHlch(28.06, 74.16, 302.51°)
OKLaboklab(39.67% 0.0192 -0.1807)
OKLCHoklch(39.67% 0.182 276.1)
XYZxyz(9.2220, 5.4789, 36.1616)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA5 #A0A52F
analogous
#2F65A5 #342FA5 #6F2FA5
triadic
#342FA5 #A5342F #2FA534
tetradic
#342FA5 #A52F65 #A0A52F #2FA56F
square
#342FA5 #A52F65 #A0A52F #2FA56F
split-complementary
#342FA5 #A56F2F #65A52F
monochromatic
#161446 #252175 #342FA5 #4C47CB #7A76D8

Accessibility & contrast

On white

10.02
#342FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#342FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA5
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA5#FFFFFF#000000##FFFFFF
##342FA51.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342fa5;
/* rgb */ color: rgb(52, 47, 165);
/* oklch */ color: oklch(39.7% 0.182 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b69c1',
    500: '#342fa5',
    950: '#000000',
  },
}
SCSS
$custom: #342fa5;
$custom-light: #7b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa5",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 242.542,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39672,
    "c": 0.1817,
    "h": 276.1
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#342FA5
secondary
#BDC070
accent
#DF49D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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