#342A79#342A79

#342A79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.129 H 283.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#342A79
RGBrgb(52, 42, 121)
HSLhsl(248, 48%, 32%)
HSVhsv(248, 65%, 47%)
CMYKcmyk(57%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.88, 28.05, -43.76)
CIE-LCHlch(22.88, 51.98, 302.66°)
OKLaboklab(34.7% 0.0293 -0.1256)
OKLCHoklch(34.7% 0.129 283.1)
XYZxyz(5.6943, 3.7661, 18.5123)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A79 #6F792A
analogous
#2A4879 #342A79 #5C2A79
triadic
#342A79 #79342A #2A7934
tetradic
#342A79 #792A48 #6F792A #2A795C
square
#342A79 #792A48 #6F792A #2A795C
split-complementary
#342A79 #795C2A #48792A
monochromatic
#0D0A1E #201A4C #342A79 #483AA6 #6658C5

Accessibility & contrast

On white

11.98
#342A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A79
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A79#FFFFFF#000000##FFFFFF
##342A791.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#143D4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342a79;
/* rgb */ color: rgb(52, 42, 121);
/* oklch */ color: oklch(34.7% 0.129 283.1);
Tailwind
colors: {
  custom: {
    50: '#7364a0',
    500: '#342a79',
    950: '#000000',
  },
}
SCSS
$custom: #342a79;
$custom-light: #7364a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342a79",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 247.595,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.129,
    "h": 283.1
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#342A79
secondary
#A0AB54
accent
#D850C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #342A79

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

Preview Lab → · Contrast checker → · Palette generator →

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