#342A73#342A73

#342A73 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.120 H 284.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#342A73
RGBrgb(52, 42, 115)
HSLhsl(248, 46%, 31%)
HSVhsv(248, 63%, 45%)
CMYKcmyk(54.8%, 63.5%, 0%, 54.9%)
CIE-LABlab(22.39, 26.02, -40.73)
CIE-LCHlch(22.39, 48.34, 302.57°)
OKLaboklab(34.18% 0.0297 -0.1167)
OKLCHoklch(34.18% 0.12 284.3)
XYZxyz(5.3377, 3.6235, 16.6345)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A73 #69732A
analogous
#2A4473 #342A73 #582A73
triadic
#342A73 #73342A #2A7334
tetradic
#342A73 #732A44 #69732A #2A7358
square
#342A73 #732A44 #69732A #2A7358
split-complementary
#342A73 #73582A #44732A
monochromatic
#0B0919 #201A46 #342A73 #483AA0 #6556C1

Accessibility & contrast

On white

12.18
#342A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A73
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A73#FFFFFF#000000##FFFFFF
##342A731.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003875
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#1B3B4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342a73;
/* rgb */ color: rgb(52, 42, 115);
/* oklch */ color: oklch(34.2% 0.120 284.3);
Tailwind
colors: {
  custom: {
    50: '#72649c',
    500: '#342a73',
    950: '#000000',
  },
}
SCSS
$custom: #342a73;
$custom-light: #72649c;
$custom-dark: #000000;
JSON
{
  "hex": "#342a73",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 248.219,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.12047,
    "h": 284.3
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#342A73
secondary
#9AA554
accent
#D652C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A73

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

Preview Lab → · Contrast checker → · Palette generator →

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