#342C80#342C80

#342C80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.136 H 281.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#342C80
RGBrgb(52, 44, 128)
HSLhsl(246, 49%, 34%)
HSVhsv(246, 66%, 50%)
CMYKcmyk(59.4%, 65.6%, 0%, 49.8%)
CIE-LABlab(23.97, 29.14, -46.43)
CIE-LCHlch(23.97, 54.81, 302.11°)
OKLaboklab(35.67% 0.0266 -0.1335)
OKLCHoklch(35.67% 0.136 281.3)
XYZxyz(6.2119, 4.0895, 20.8799)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C80 #78802C
analogous
#2C4E80 #342C80 #5E2C80
triadic
#342C80 #80342C #2C8034
tetradic
#342C80 #802C4E #78802C #2C805E
square
#342C80 #802C4E #78802C #2C805E
split-complementary
#342C80 #805E2C #4E802C
monochromatic
#0F0D25 #211C52 #342C80 #473CAE #695FC8

Accessibility & contrast

On white

11.55
#342C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C80
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C80#FFFFFF#000000##FFFFFF
##342C801.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#094151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342c80;
/* rgb */ color: rgb(52, 44, 128);
/* oklch */ color: oklch(35.7% 0.136 281.3);
Tailwind
colors: {
  custom: {
    50: '#7466a6',
    500: '#342c80',
    950: '#000000',
  },
}
SCSS
$custom: #342c80;
$custom-light: #7466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342c80",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 245.714,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35671,
    "c": 0.1361,
    "h": 281.3
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#342C80
secondary
#A6AE5A
accent
#D84FCB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342C80

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

Preview Lab → · Contrast checker → · Palette generator →

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