#342AA8#342AA8

#342AA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.191 H 276.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#342AA8
RGBrgb(52, 42, 168)
HSLhsl(245, 60%, 41%)
HSVhsv(245, 75%, 66%)
CMYKcmyk(69%, 75%, 0%, 34.1%)
CIE-LABlab(27.33, 43.71, -65.55)
CIE-LCHlch(27.33, 78.79, 303.70°)
OKLaboklab(39.25% 0.0217 -0.1894)
OKLCHoklch(39.25% 0.191 276.5)
XYZxyz(9.3097, 5.2123, 37.5537)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA8 #9EA82A
analogous
#2A5FA8 #342AA8 #732AA8
triadic
#342AA8 #A8342A #2AA834
tetradic
#342AA8 #A82A5F #9EA82A #2AA873
square
#342AA8 #A82A5F #9EA82A #2AA873
split-complementary
#342AA8 #A8732A #5FA82A
monochromatic
#161246 #251E77 #342AA8 #4B40CF #7971DB

Accessibility & contrast

On white

10.28
#342AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342AA8
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA8#FFFFFF#000000##FFFFFF
##342AA81.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342aa8;
/* rgb */ color: rgb(52, 42, 168);
/* oklch */ color: oklch(39.2% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c66c3',
    500: '#342aa8',
    950: '#000000',
  },
}
SCSS
$custom: #342aa8;
$custom-light: #7c66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa8",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 244.762,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39245,
    "c": 0.19067,
    "h": 276.5
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#342AA8
secondary
#BCC36B
accent
#E345D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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