#342F8D#342F8D

#342F8D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.150 H 278.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#342F8D
RGBrgb(52, 47, 141)
HSLhsl(243, 50%, 37%)
HSVhsv(243, 67%, 55%)
CMYKcmyk(63.1%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.82, 31.68, -51.53)
CIE-LCHlch(25.82, 60.49, 301.59°)
OKLaboklab(37.37% 0.0225 -0.1484)
OKLCHoklch(37.37% 0.15 278.6)
XYZxyz(7.2389, 4.6856, 25.7171)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F8D #888D2F
analogous
#2F598D #342F8D #632F8D
triadic
#342F8D #8D342F #2F8D34
tetradic
#342F8D #8D2F59 #888D2F #2F8D63
square
#342F8D #8D2F59 #888D2F #2F8D63
split-complementary
#342F8D #8D632F #598D2F
monochromatic
#121031 #23205F #342F8D #453EBB #6F69CD

Accessibility & contrast

On white

10.84
#342F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#342F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F8D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F8D#FFFFFF#000000##FFFFFF
##342F8D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342f8d;
/* rgb */ color: rgb(52, 47, 141);
/* oklch */ color: oklch(37.4% 0.150 278.6);
Tailwind
colors: {
  custom: {
    50: '#7668af',
    500: '#342f8d',
    950: '#000000',
  },
}
SCSS
$custom: #342f8d;
$custom-light: #7668af;
$custom-dark: #000000;
JSON
{
  "hex": "#342f8d",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 243.191,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37373,
    "c": 0.15013,
    "h": 278.6
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#342F8D
secondary
#B0B464
accent
#DA4ED2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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