#342D8F#342D8F

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

Color values

HEX#342D8F
RGBrgb(52, 45, 143)
HSLhsl(244, 52%, 37%)
HSVhsv(244, 69%, 56%)
CMYKcmyk(63.6%, 68.5%, 0%, 43.9%)
CIE-LABlab(25.53, 33.63, -53.24)
CIE-LCHlch(25.53, 62.97, 302.28°)
OKLaboklab(37.22% 0.024 -0.1534)
OKLCHoklch(37.22% 0.155 278.9)
XYZxyz(7.3109, 4.5894, 26.4819)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D8F #888F2D
analogous
#2D578F #342D8F #652D8F
triadic
#342D8F #8F342D #2D8F34
tetradic
#342D8F #8F2D57 #888F2D #2D8F65
square
#342D8F #8F2D57 #888F2D #2D8F65
split-complementary
#342D8F #8F652D #578F2D
monochromatic
#121032 #231E60 #342D8F #453CBE #6F67CF

Accessibility & contrast

On white

10.95
#342D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342D8F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D8F#FFFFFF#000000##FFFFFF
##342D8F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342d8f;
/* rgb */ color: rgb(52, 45, 143);
/* oklch */ color: oklch(37.2% 0.155 278.9);
Tailwind
colors: {
  custom: {
    50: '#7767b1',
    500: '#342d8f',
    950: '#000000',
  },
}
SCSS
$custom: #342d8f;
$custom-light: #7767b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342d8f",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 244.286,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3722,
    "c": 0.15532,
    "h": 278.9
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#342D8F
secondary
#B0B662
accent
#DC4CD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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