#342F8A#342F8A

#342F8A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.146 H 279.0°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#342F8A
RGBrgb(52, 47, 138)
HSLhsl(243, 49%, 36%)
HSVhsv(243, 66%, 54%)
CMYKcmyk(62.3%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.56, 30.65, -50.09)
CIE-LCHlch(25.56, 58.72, 301.46°)
OKLaboklab(37.1% 0.0228 -0.1442)
OKLCHoklch(37.1% 0.146 279)
XYZxyz(7.0187, 4.5976, 24.5574)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F8A #858A2F
analogous
#2F588A #342F8A #622F8A
triadic
#342F8A #8A342F #2F8A34
tetradic
#342F8A #8A2F58 #858A2F #2F8A62
square
#342F8A #8A2F58 #858A2F #2F8A62
split-complementary
#342F8A #8A622F #588A2F
monochromatic
#12102F #231F5C #342F8A #453FB8 #6D68CC

Accessibility & contrast

On white

10.94
#342F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F8A
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F8A#FFFFFF#000000##FFFFFF
##342F8A1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342f8a;
/* rgb */ color: rgb(52, 47, 138);
/* oklch */ color: oklch(37.1% 0.146 279.0);
Tailwind
colors: {
  custom: {
    50: '#7668ad',
    500: '#342f8a',
    950: '#000000',
  },
}
SCSS
$custom: #342f8a;
$custom-light: #7668ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342f8a",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 243.297,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37099,
    "c": 0.14601,
    "h": 279
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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