#342EAA#342EAA

#342EAA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.189 H 275.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#342EAA
RGBrgb(52, 46, 170)
HSLhsl(243, 57%, 42%)
HSVhsv(243, 73%, 67%)
CMYKcmyk(69.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(28.34, 42.10, -65.09)
CIE-LCHlch(28.34, 77.52, 302.90°)
OKLaboklab(40.02% 0.0189 -0.1881)
OKLCHoklch(40.02% 0.189 275.7)
XYZxyz(9.6465, 5.5854, 38.5921)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAA #A4AA2E
analogous
#2E66AA #342EAA #722EAA
triadic
#342EAA #AA342E #2EAA34
tetradic
#342EAA #AA2E66 #A4AA2E #2EAA72
square
#342EAA #AA2E66 #A4AA2E #2EAA72
split-complementary
#342EAA #AA722E #66AA2E
monochromatic
#17144A #25217A #342EAA #4E48CD #7D78DA

Accessibility & contrast

On white

9.92
#342EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#342EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EAA
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAA#FFFFFF#000000##FFFFFF
##342EAA1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342eaa;
/* rgb */ color: rgb(52, 46, 170);
/* oklch */ color: oklch(40.0% 0.189 275.7);
Tailwind
colors: {
  custom: {
    50: '#7c68c4',
    500: '#342eaa',
    950: '#000000',
  },
}
SCSS
$custom: #342eaa;
$custom-light: #7c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342eaa",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 242.903,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.18906,
    "h": 275.7
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#342EAA
secondary
#BFC371
accent
#E147D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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