#342B7E#342B7E

#342B7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.135 H 281.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#342B7E
RGBrgb(52, 43, 126)
HSLhsl(247, 49%, 33%)
HSVhsv(247, 66%, 49%)
CMYKcmyk(58.7%, 65.9%, 0%, 50.6%)
CIE-LABlab(23.55, 29.10, -45.84)
CIE-LCHlch(23.55, 54.30, 302.41°)
OKLaboklab(35.32% 0.0278 -0.1317)
OKLCHoklch(35.32% 0.135 281.9)
XYZxyz(6.0448, 3.9638, 20.1812)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B7E #757E2B
analogous
#2B4B7E #342B7E #5D2B7E
triadic
#342B7E #7E342B #2B7E34
tetradic
#342B7E #7E2B4B #757E2B #2B7E5D
square
#342B7E #7E2B4B #757E2B #2B7E5D
split-complementary
#342B7E #7E5D2B #4B7E2B
monochromatic
#0E0C23 #211B50 #342B7E #473BAC #685CC7

Accessibility & contrast

On white

11.71
#342B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B7E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B7E#FFFFFF#000000##FFFFFF
##342B7E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#0D4050
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342b7e;
/* rgb */ color: rgb(52, 43, 126);
/* oklch */ color: oklch(35.3% 0.135 281.9);
Tailwind
colors: {
  custom: {
    50: '#7465a4',
    500: '#342b7e',
    950: '#000000',
  },
}
SCSS
$custom: #342b7e;
$custom-light: #7465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342b7e",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 246.506,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35316,
    "c": 0.13465,
    "h": 281.9
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#342B7E
secondary
#A4AD58
accent
#D94FCA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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