#342FAA#342FAA

#342FAA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.188 H 275.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#342FAA
RGBrgb(52, 47, 170)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 72%, 67%)
CMYKcmyk(69.4%, 72.4%, 0%, 33.3%)
CIE-LABlab(28.55, 41.52, -64.75)
CIE-LCHlch(28.55, 76.92, 302.67°)
OKLaboklab(40.17% 0.0183 -0.1871)
OKLCHoklch(40.17% 0.188 275.6)
XYZxyz(9.6860, 5.6645, 38.6053)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FAA #A5AA2F
analogous
#2F68AA #342FAA #712FAA
triadic
#342FAA #AA342F #2FAA34
tetradic
#342FAA #AA2F68 #A5AA2F #2FAA71
square
#342FAA #AA2F68 #A5AA2F #2FAA71
split-complementary
#342FAA #AA712F #68AA2F
monochromatic
#17144A #25227A #342FAA #4F49CD #7D79DA

Accessibility & contrast

On white

9.85
#342FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FAA
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FAA#FFFFFF#000000##FFFFFF
##342FAA1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342faa;
/* rgb */ color: rgb(52, 47, 170);
/* oklch */ color: oklch(40.2% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#7c69c4',
    500: '#342faa',
    950: '#000000',
  },
}
SCSS
$custom: #342faa;
$custom-light: #7c69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342faa",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 242.439,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40172,
    "c": 0.18801,
    "h": 275.6
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#342FAA
secondary
#BFC272
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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