#342AAA#342AAA

#342AAA is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.193 H 276.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#342AAA
RGBrgb(52, 42, 170)
HSLhsl(245, 60%, 42%)
HSVhsv(245, 75%, 67%)
CMYKcmyk(69.4%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.54, 44.36, -66.41)
CIE-LCHlch(27.54, 79.86, 303.74°)
OKLaboklab(39.45% 0.0212 -0.1919)
OKLCHoklch(39.45% 0.193 276.3)
XYZxyz(9.4975, 5.2874, 38.5425)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AAA #A0AA2A
analogous
#2A60AA #342AAA #742AAA
triadic
#342AAA #AA342A #2AAA34
tetradic
#342AAA #AA2A60 #A0AA2A #2AAA74
square
#342AAA #AA2A60 #A0AA2A #2AAA74
split-complementary
#342AAA #AA742A #60AA2A
monochromatic
#161248 #251E79 #342AAA #4C41D0 #7A72DC

Accessibility & contrast

On white

10.21
#342AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AAA
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AAA#FFFFFF#000000##FFFFFF
##342AAA1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342aaa;
/* rgb */ color: rgb(52, 42, 170);
/* oklch */ color: oklch(39.5% 0.193 276.3);
Tailwind
colors: {
  custom: {
    50: '#7d66c5',
    500: '#342aaa',
    950: '#000000',
  },
}
SCSS
$custom: #342aaa;
$custom-light: #7d66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342aaa",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 244.688,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39453,
    "c": 0.19311,
    "h": 276.3
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#342AAA
secondary
#BDC36C
accent
#E444D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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