#342D79#342D79

#342D79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.125 H 282.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#342D79
RGBrgb(52, 45, 121)
HSLhsl(246, 46%, 33%)
HSVhsv(246, 63%, 47%)
CMYKcmyk(57%, 62.8%, 0%, 52.5%)
CIE-LABlab(23.63, 26.09, -42.55)
CIE-LCHlch(23.63, 49.91, 301.52°)
OKLaboklab(35.24% 0.0261 -0.1221)
OKLCHoklch(35.24% 0.125 282)
XYZxyz(5.8047, 3.9870, 18.5491)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D79 #72792D
analogous
#2D4C79 #342D79 #5A2D79
triadic
#342D79 #79342D #2D7934
tetradic
#342D79 #792D4C #72792D #2D795A
square
#342D79 #792D4C #72792D #2D795A
split-complementary
#342D79 #795A2D #4C792D
monochromatic
#0E0C20 #211C4C #342D79 #473EA6 #675DC3

Accessibility & contrast

On white

11.68
#342D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D79
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D79#FFFFFF#000000##FFFFFF
##342D791.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#143F4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342d79;
/* rgb */ color: rgb(52, 45, 121);
/* oklch */ color: oklch(35.2% 0.125 282.0);
Tailwind
colors: {
  custom: {
    50: '#7366a0',
    500: '#342d79',
    950: '#000000',
  },
}
SCSS
$custom: #342d79;
$custom-light: #7366a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342d79",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 245.526,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35241,
    "c": 0.12481,
    "h": 282
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#342D79
secondary
#A2A958
accent
#D552C9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #342D79

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

Preview Lab → · Contrast checker → · Palette generator →

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