#342A74#342A74

#342A74 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.122 H 284.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#342A74
RGBrgb(52, 42, 116)
HSLhsl(248, 47%, 31%)
HSVhsv(248, 64%, 45%)
CMYKcmyk(55.2%, 63.8%, 0%, 54.5%)
CIE-LABlab(22.47, 26.36, -41.24)
CIE-LCHlch(22.47, 48.95, 302.58°)
OKLaboklab(34.26% 0.0296 -0.1182)
OKLCHoklch(34.26% 0.122 284.1)
XYZxyz(5.3956, 3.6467, 16.9392)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A74 #6A742A
analogous
#2A4574 #342A74 #592A74
triadic
#342A74 #74342A #2A7434
tetradic
#342A74 #742A45 #6A742A #2A7459
square
#342A74 #742A45 #6A742A #2A7459
split-complementary
#342A74 #74592A #45742A
monochromatic
#0C091A #201A47 #342A74 #483AA1 #6556C2

Accessibility & contrast

On white

12.14
#342A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A74
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A74#FFFFFF#000000##FFFFFF
##342A741.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#1A3C4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342a74;
/* rgb */ color: rgb(52, 42, 116);
/* oklch */ color: oklch(34.3% 0.122 284.1);
Tailwind
colors: {
  custom: {
    50: '#72649d',
    500: '#342a74',
    950: '#000000',
  },
}
SCSS
$custom: #342a74;
$custom-light: #72649d;
$custom-dark: #000000;
JSON
{
  "hex": "#342a74",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 248.108,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.1219,
    "h": 284.1
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#342A74
secondary
#9BA654
accent
#D651C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A74

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

Preview Lab → · Contrast checker → · Palette generator →

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