#342AA9#342AA9

#342AA9 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.192 H 276.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#342AA9
RGBrgb(52, 42, 169)
HSLhsl(245, 60%, 41%)
HSVhsv(245, 75%, 66%)
CMYKcmyk(69.2%, 75.1%, 0%, 33.7%)
CIE-LABlab(27.43, 44.03, -65.98)
CIE-LCHlch(27.43, 79.32, 303.72°)
OKLaboklab(39.35% 0.0215 -0.1907)
OKLCHoklch(39.35% 0.192 276.4)
XYZxyz(9.4032, 5.2497, 38.0462)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA9 #9FA92A
analogous
#2A60A9 #342AA9 #742AA9
triadic
#342AA9 #A9342A #2AA934
tetradic
#342AA9 #A92A60 #9FA92A #2AA974
square
#342AA9 #A92A60 #9FA92A #2AA974
split-complementary
#342AA9 #A9742A #60A92A
monochromatic
#161247 #251E78 #342AA9 #4C41D0 #7A72DC

Accessibility & contrast

On white

10.24
#342AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#342AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA9
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA9#FFFFFF#000000##FFFFFF
##342AA91.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342aa9;
/* rgb */ color: rgb(52, 42, 169);
/* oklch */ color: oklch(39.3% 0.192 276.4);
Tailwind
colors: {
  custom: {
    50: '#7d66c4',
    500: '#342aa9',
    950: '#000000',
  },
}
SCSS
$custom: #342aa9;
$custom-light: #7d66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa9",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 244.724,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39349,
    "c": 0.19189,
    "h": 276.4
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#342AA9
secondary
#BCC36C
accent
#E344D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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