#342D7F#342D7F

#342D7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.133 H 281.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#342D7F
RGBrgb(52, 45, 127)
HSLhsl(245, 48%, 34%)
HSVhsv(245, 65%, 50%)
CMYKcmyk(59.1%, 64.6%, 0%, 50.2%)
CIE-LABlab(24.12, 28.15, -45.54)
CIE-LCHlch(24.12, 53.54, 301.72°)
OKLaboklab(35.76% 0.0257 -0.1308)
OKLCHoklch(35.76% 0.133 281.1)
XYZxyz(6.1841, 4.1387, 20.5475)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D7F #787F2D
analogous
#2D4F7F #342D7F #5D2D7F
triadic
#342D7F #7F342D #2D7F34
tetradic
#342D7F #7F2D4F #787F2D #2D7F5D
square
#342D7F #7F2D4F #787F2D #2D7F5D
split-complementary
#342D7F #7F5D2D #4F7F2D
monochromatic
#0F0D25 #211D52 #342D7F #473DAC #6960C7

Accessibility & contrast

On white

11.49
#342D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D7F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D7F#FFFFFF#000000##FFFFFF
##342D7F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#0A4151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342d7f;
/* rgb */ color: rgb(52, 45, 127);
/* oklch */ color: oklch(35.8% 0.133 281.1);
Tailwind
colors: {
  custom: {
    50: '#7466a5',
    500: '#342d7f',
    950: '#000000',
  },
}
SCSS
$custom: #342d7f;
$custom-light: #7466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#342d7f",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 245.122,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35761,
    "c": 0.13335,
    "h": 281.1
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#342D7F
secondary
#A6AD5B
accent
#D751CC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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