#342B7A#342B7A

#342B7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.129 H 282.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#342B7A
RGBrgb(52, 43, 122)
HSLhsl(247, 48%, 32%)
HSVhsv(247, 65%, 48%)
CMYKcmyk(57.4%, 64.8%, 0%, 52.2%)
CIE-LABlab(23.21, 27.74, -43.86)
CIE-LCHlch(23.21, 51.89, 302.31°)
OKLaboklab(34.96% 0.0281 -0.1259)
OKLCHoklch(34.96% 0.129 282.6)
XYZxyz(5.7918, 3.8626, 18.8489)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B7A #717A2B
analogous
#2B4A7A #342B7A #5B2B7A
triadic
#342B7A #7A342B #2B7A34
tetradic
#342B7A #7A2B4A #717A2B #2B7A5B
square
#342B7A #7A2B4A #717A2B #2B7A5B
split-complementary
#342B7A #7A5B2B #4A7A2B
monochromatic
#0D0B1F #211B4D #342B7A #473BA7 #675AC5

Accessibility & contrast

On white

11.85
#342B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B7A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B7A#FFFFFF#000000##FFFFFF
##342B7A1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#133E4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342b7a;
/* rgb */ color: rgb(52, 43, 122);
/* oklch */ color: oklch(35.0% 0.129 282.6);
Tailwind
colors: {
  custom: {
    50: '#7365a1',
    500: '#342b7a',
    950: '#000000',
  },
}
SCSS
$custom: #342b7a;
$custom-light: #7365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342b7a",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 246.835,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34962,
    "c": 0.12903,
    "h": 282.6
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#342B7A
secondary
#A1AB56
accent
#D750C8
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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