#342B71#342B71

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

Color values

HEX#342B71
RGBrgb(52, 43, 113)
HSLhsl(248, 45%, 31%)
HSVhsv(248, 62%, 44%)
CMYKcmyk(54%, 61.9%, 0%, 55.7%)
CIE-LABlab(22.48, 24.68, -39.30)
CIE-LCHlch(22.48, 46.41, 302.13°)
OKLaboklab(34.19% 0.0286 -0.1125)
OKLCHoklch(34.19% 0.116 284.3)
XYZxyz(5.2598, 3.6498, 16.0469)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B71 #68712B
analogous
#2B4571 #342B71 #572B71
triadic
#342B71 #71342B #2B7134
tetradic
#342B71 #712B45 #68712B #2B7157
square
#342B71 #712B45 #68712B #2B7157
split-complementary
#342B71 #71572B #45712B
monochromatic
#0B0918 #201A45 #342B71 #483C9D #6557BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342B71#FFFFFF#000000##FFFFFF
##342B711.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)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#1C3B49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342b71;
/* rgb */ color: rgb(52, 43, 113);
/* oklch */ color: oklch(34.2% 0.116 284.3);
Tailwind
colors: {
  custom: {
    50: '#71649a',
    500: '#342b71',
    950: '#000000',
  },
}
SCSS
$custom: #342b71;
$custom-light: #71649a;
$custom-dark: #000000;
JSON
{
  "hex": "#342b71",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 247.714,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34193,
    "c": 0.1161,
    "h": 284.3
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#342B71
secondary
#99A355
accent
#D553C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342B71

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

Preview Lab → · Contrast checker → · Palette generator →

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