#342F71#342F71

#342F71 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.110 H 282.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#342F71
RGBrgb(52, 47, 113)
HSLhsl(245, 41%, 31%)
HSVhsv(245, 58%, 44%)
CMYKcmyk(54%, 58.4%, 0%, 55.7%)
CIE-LABlab(23.52, 22.01, -37.61)
CIE-LCHlch(23.52, 43.58, 300.33°)
OKLaboklab(34.97% 0.0239 -0.1075)
OKLCHoklch(34.97% 0.11 282.5)
XYZxyz(5.4124, 3.9551, 16.0978)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F71 #6C712F
analogous
#2F4B71 #342F71 #552F71
triadic
#342F71 #71342F #2F7134
tetradic
#342F71 #712F4B #6C712F #2F7155
square
#342F71 #712F4B #6C712F #2F7155
split-complementary
#342F71 #71552F #4B712F
monochromatic
#0C0B1B #201D46 #342F71 #48419C #655EBC

Accessibility & contrast

On white

11.73
#342F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F71
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F71#FFFFFF#000000##FFFFFF
##342F711.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043A73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#1C3E4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342f71;
/* rgb */ color: rgb(52, 47, 113);
/* oklch */ color: oklch(35.0% 0.110 282.5);
Tailwind
colors: {
  custom: {
    50: '#71679a',
    500: '#342f71',
    950: '#000000',
  },
}
SCSS
$custom: #342f71;
$custom-light: #71679a;
$custom-dark: #000000;
JSON
{
  "hex": "#342f71",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 244.545,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34965,
    "c": 0.11014,
    "h": 282.5
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#342F71
secondary
#9DA25A
accent
#D157C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F71

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

Preview Lab → · Contrast checker → · Palette generator →

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