#342A78#342A78

#342A78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.128 H 283.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#342A78
RGBrgb(52, 42, 120)
HSLhsl(248, 48%, 32%)
HSVhsv(248, 65%, 47%)
CMYKcmyk(56.7%, 65%, 0%, 52.9%)
CIE-LABlab(22.80, 27.71, -43.26)
CIE-LCHlch(22.80, 51.37, 302.64°)
OKLaboklab(34.61% 0.0294 -0.1242)
OKLCHoklch(34.61% 0.128 283.3)
XYZxyz(5.6333, 3.7417, 18.1910)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A78 #6E782A
analogous
#2A4778 #342A78 #5B2A78
triadic
#342A78 #78342A #2A7834
tetradic
#342A78 #782A47 #6E782A #2A785B
square
#342A78 #782A47 #6E782A #2A785B
split-complementary
#342A78 #785B2A #47782A
monochromatic
#0D0A1D #201A4B #342A78 #483AA5 #6658C5

Accessibility & contrast

On white

12.01
#342A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A78
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A78#FFFFFF#000000##FFFFFF
##342A781.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#163D4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342a78;
/* rgb */ color: rgb(52, 42, 120);
/* oklch */ color: oklch(34.6% 0.128 283.3);
Tailwind
colors: {
  custom: {
    50: '#7364a0',
    500: '#342a78',
    950: '#000000',
  },
}
SCSS
$custom: #342a78;
$custom-light: #7364a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342a78",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 247.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.12759,
    "h": 283.3
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#342A78
secondary
#9FAA54
accent
#D850C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #342A78

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

Preview Lab → · Contrast checker → · Palette generator →

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