#342F80#342F80

#342F80 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.132 H 280.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#342F80
RGBrgb(52, 47, 128)
HSLhsl(244, 46%, 34%)
HSVhsv(244, 63%, 50%)
CMYKcmyk(59.4%, 63.3%, 0%, 49.8%)
CIE-LABlab(24.71, 27.19, -45.22)
CIE-LCHlch(24.71, 52.77, 301.02°)
OKLaboklab(36.21% 0.0236 -0.1299)
OKLCHoklch(36.21% 0.132 280.3)
XYZxyz(6.3277, 4.3212, 20.9185)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F80 #7B802F
analogous
#2F5380 #342F80 #5D2F80
triadic
#342F80 #80342F #2F8034
tetradic
#342F80 #802F53 #7B802F #2F805D
square
#342F80 #802F53 #7B802F #2F805D
split-complementary
#342F80 #805D2F #53802F
monochromatic
#100E26 #221F53 #342F80 #463FAD #6A63C6

Accessibility & contrast

On white

11.26
#342F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F80
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F80#FFFFFF#000000##FFFFFF
##342F801.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E83
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#084352
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342f80;
/* rgb */ color: rgb(52, 47, 128);
/* oklch */ color: oklch(36.2% 0.132 280.3);
Tailwind
colors: {
  custom: {
    50: '#7468a6',
    500: '#342f80',
    950: '#000000',
  },
}
SCSS
$custom: #342f80;
$custom-light: #7468a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342f80",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 243.704,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.13203,
    "h": 280.3
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#342F80
secondary
#A8AD5E
accent
#D652CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342F80

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

Preview Lab → · Contrast checker → · Palette generator →

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