#342A71#342A71

#342A71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.0% C 0.118 H 284.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#342A71
RGBrgb(52, 42, 113)
HSLhsl(248, 46%, 30%)
HSVhsv(248, 63%, 44%)
CMYKcmyk(54%, 62.8%, 0%, 55.7%)
CIE-LABlab(22.22, 25.34, -39.71)
CIE-LCHlch(22.22, 47.11, 302.54°)
OKLaboklab(34.01% 0.0298 -0.1137)
OKLCHoklch(34.01% 0.118 284.7)
XYZxyz(5.2239, 3.5780, 16.0349)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A71 #67712A
analogous
#2A4371 #342A71 #572A71
triadic
#342A71 #71342A #2A7134
tetradic
#342A71 #712A43 #67712A #2A7157
square
#342A71 #712A43 #67712A #2A7157
split-complementary
#342A71 #71572A #43712A
monochromatic
#0B0918 #1F1944 #342A71 #493B9E #6455C0

Accessibility & contrast

On white

12.24
#342A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A71
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A71#FFFFFF#000000##FFFFFF
##342A711.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#1C3B49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342a71;
/* rgb */ color: rgb(52, 42, 113);
/* oklch */ color: oklch(34.0% 0.118 284.7);
Tailwind
colors: {
  custom: {
    50: '#71649a',
    500: '#342a71',
    950: '#000000',
  },
}
SCSS
$custom: #342a71;
$custom-light: #71649a;
$custom-dark: #000000;
JSON
{
  "hex": "#342a71",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 248.451,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34006,
    "c": 0.11757,
    "h": 284.7
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#342A71
secondary
#98A354
accent
#D552C3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A71

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

Preview Lab → · Contrast checker → · Palette generator →

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