#342CAA#342CAA

#342CAA is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.191 H 276.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#342CAA
RGBrgb(52, 44, 170)
HSLhsl(244, 59%, 42%)
HSVhsv(244, 74%, 67%)
CMYKcmyk(69.4%, 74.1%, 0%, 33.3%)
CIE-LABlab(27.93, 43.24, -65.76)
CIE-LCHlch(27.93, 78.70, 303.33°)
OKLaboklab(39.73% 0.0201 -0.1901)
OKLCHoklch(39.73% 0.191 276)
XYZxyz(9.5702, 5.4328, 38.5667)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CAA #A2AA2C
analogous
#2C63AA #342CAA #732CAA
triadic
#342CAA #AA342C #2CAA34
tetradic
#342CAA #AA2C63 #A2AA2C #2CAA73
square
#342CAA #AA2C63 #A2AA2C #2CAA73
split-complementary
#342CAA #AA732C #63AA2C
monochromatic
#161349 #251F79 #342CAA #4D44CF #7C75DB

Accessibility & contrast

On white

10.06
#342CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#342CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CAA
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CAA#FFFFFF#000000##FFFFFF
##342CAA1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342caa;
/* rgb */ color: rgb(52, 44, 170);
/* oklch */ color: oklch(39.7% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#7d67c4',
    500: '#342caa',
    950: '#000000',
  },
}
SCSS
$custom: #342caa;
$custom-light: #7d67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342caa",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 243.81,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39734,
    "c": 0.19112,
    "h": 276
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#342CAA
secondary
#BEC36F
accent
#E246D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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