#342AA0#342AA0

#342AA0 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.181 H 277.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#342AA0
RGBrgb(52, 42, 160)
HSLhsl(245, 58%, 40%)
HSVhsv(245, 74%, 63%)
CMYKcmyk(67.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(26.52, 41.10, -62.05)
CIE-LCHlch(26.52, 74.43, 303.52°)
OKLaboklab(38.42% 0.0233 -0.1792)
OKLCHoklch(38.42% 0.181 277.4)
XYZxyz(8.5872, 4.9233, 33.7486)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA0 #96A02A
analogous
#2A5BA0 #342AA0 #6F2AA0
triadic
#342AA0 #A0342A #2AA034
tetradic
#342AA0 #A02A5B #96A02A #2AA06F
square
#342AA0 #A02A5B #96A02A #2AA06F
split-complementary
#342AA0 #A06F2A #5BA02A
monochromatic
#14113F #241D70 #342AA0 #483CCC #756CD8

Accessibility & contrast

On white

10.58
#342AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA0
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA0#FFFFFF#000000##FFFFFF
##342AA01.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342aa0;
/* rgb */ color: rgb(52, 42, 160);
/* oklch */ color: oklch(38.4% 0.181 277.4);
Tailwind
colors: {
  custom: {
    50: '#7b65bd',
    500: '#342aa0',
    950: '#000000',
  },
}
SCSS
$custom: #342aa0;
$custom-light: #7b65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa0",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 245.085,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38422,
    "c": 0.18073,
    "h": 277.4
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#342AA0
secondary
#B8BF67
accent
#E246D4
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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