#342F84#342F84

#342F84 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.138 H 279.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#342F84
RGBrgb(52, 47, 132)
HSLhsl(244, 47%, 35%)
HSVhsv(244, 64%, 52%)
CMYKcmyk(60.6%, 64.4%, 0%, 48.2%)
CIE-LABlab(25.04, 28.57, -47.19)
CIE-LCHlch(25.04, 55.17, 301.20°)
OKLaboklab(36.56% 0.0233 -0.1357)
OKLCHoklch(36.56% 0.138 279.8)
XYZxyz(6.5962, 4.4286, 22.3325)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F84 #7F842F
analogous
#2F5584 #342F84 #5E2F84
triadic
#342F84 #84342F #2F8434
tetradic
#342F84 #842F55 #7F842F #2F845E
square
#342F84 #842F55 #7F842F #2F845E
split-complementary
#342F84 #845E2F #55842F
monochromatic
#100F2A #221F57 #342F84 #463FB1 #6B65C8

Accessibility & contrast

On white

11.14
#342F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F84
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F84#FFFFFF#000000##FFFFFF
##342F841.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342f84;
/* rgb */ color: rgb(52, 47, 132);
/* oklch */ color: oklch(36.6% 0.138 279.8);
Tailwind
colors: {
  custom: {
    50: '#7468a8',
    500: '#342f84',
    950: '#000000',
  },
}
SCSS
$custom: #342f84;
$custom-light: #7468a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342f84",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 243.529,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36562,
    "c": 0.13768,
    "h": 279.8
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#342F84
secondary
#AAAF60
accent
#D751CF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F84

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

Preview Lab → · Contrast checker → · Palette generator →

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