#342A76#342A76

#342A76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.125 H 283.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#342A76
RGBrgb(52, 42, 118)
HSLhsl(248, 48%, 31%)
HSVhsv(248, 64%, 46%)
CMYKcmyk(55.9%, 64.4%, 0%, 53.7%)
CIE-LABlab(22.63, 27.03, -42.25)
CIE-LCHlch(22.63, 50.16, 302.61°)
OKLaboklab(34.43% 0.0295 -0.1212)
OKLCHoklch(34.43% 0.125 283.7)
XYZxyz(5.5132, 3.6937, 17.5585)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A76 #6C762A
analogous
#2A4676 #342A76 #5A2A76
triadic
#342A76 #76342A #2A7634
tetradic
#342A76 #762A46 #6C762A #2A765A
square
#342A76 #762A46 #6C762A #2A765A
split-complementary
#342A76 #765A2A #46762A
monochromatic
#0C0A1C #201A49 #342A76 #483AA3 #6557C3

Accessibility & contrast

On white

12.08
#342A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A76
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A76#FFFFFF#000000##FFFFFF
##342A761.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#183C4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342a76;
/* rgb */ color: rgb(52, 42, 118);
/* oklch */ color: oklch(34.4% 0.125 283.7);
Tailwind
colors: {
  custom: {
    50: '#72649e',
    500: '#342a76',
    950: '#000000',
  },
}
SCSS
$custom: #342a76;
$custom-light: #72649e;
$custom-dark: #000000;
JSON
{
  "hex": "#342a76",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 247.895,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.12475,
    "h": 283.7
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#342A76
secondary
#9DA854
accent
#D751C5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A76

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

Preview Lab → · Contrast checker → · Palette generator →

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