#342F8B#342F8B

#342F8B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.147 H 278.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#342F8B
RGBrgb(52, 47, 139)
HSLhsl(243, 49%, 36%)
HSVhsv(243, 66%, 55%)
CMYKcmyk(62.6%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.64, 30.99, -50.57)
CIE-LCHlch(25.64, 59.31, 301.50°)
OKLaboklab(37.19% 0.0227 -0.1456)
OKLCHoklch(37.19% 0.147 278.9)
XYZxyz(7.0914, 4.6266, 24.9404)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F8B #868B2F
analogous
#2F588B #342F8B #622F8B
triadic
#342F8B #8B342F #2F8B34
tetradic
#342F8B #8B2F58 #868B2F #2F8B62
square
#342F8B #8B2F58 #868B2F #2F8B62
split-complementary
#342F8B #8B622F #588B2F
monochromatic
#121030 #23205D #342F8B #453EB9 #6E68CC

Accessibility & contrast

On white

10.91
#342F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F8B
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F8B#FFFFFF#000000##FFFFFF
##342F8B1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342f8b;
/* rgb */ color: rgb(52, 47, 139);
/* oklch */ color: oklch(37.2% 0.147 278.9);
Tailwind
colors: {
  custom: {
    50: '#7668ae',
    500: '#342f8b',
    950: '#000000',
  },
}
SCSS
$custom: #342f8b;
$custom-light: #7668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342f8b",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 243.261,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.14739,
    "h": 278.9
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#342F8B
secondary
#AFB363
accent
#D94FD1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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