#342AA7#342AA7

#342AA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.189 H 276.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#342AA7
RGBrgb(52, 42, 167)
HSLhsl(245, 60%, 41%)
HSVhsv(245, 75%, 65%)
CMYKcmyk(68.9%, 74.9%, 0%, 34.5%)
CIE-LABlab(27.23, 43.38, -65.12)
CIE-LCHlch(27.23, 78.24, 303.67°)
OKLaboklab(39.14% 0.0219 -0.1882)
OKLCHoklch(39.14% 0.189 276.6)
XYZxyz(9.2169, 5.1752, 37.0649)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA7 #9DA72A
analogous
#2A5EA7 #342AA7 #722AA7
triadic
#342AA7 #A7342A #2AA734
tetradic
#342AA7 #A72A5E #9DA72A #2AA772
square
#342AA7 #A72A5E #9DA72A #2AA772
split-complementary
#342AA7 #A7722A #5EA72A
monochromatic
#161145 #251E76 #342AA7 #4B3FCF #7970DB

Accessibility & contrast

On white

10.32
#342AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA7
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA7#FFFFFF#000000##FFFFFF
##342AA71.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342aa7;
/* rgb */ color: rgb(52, 42, 167);
/* oklch */ color: oklch(39.1% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#7c66c2',
    500: '#342aa7',
    950: '#000000',
  },
}
SCSS
$custom: #342aa7;
$custom-light: #7c66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa7",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 244.8,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39141,
    "c": 0.18944,
    "h": 276.6
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#342AA7
secondary
#BBC26B
accent
#E345D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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