#342A8D#342A8D

#342A8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.156 H 279.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#342A8D
RGBrgb(52, 42, 141)
HSLhsl(246, 54%, 36%)
HSVhsv(246, 70%, 55%)
CMYKcmyk(63.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.67, 34.80, -53.41)
CIE-LCHlch(24.67, 63.75, 303.08°)
OKLaboklab(36.54% 0.0268 -0.154)
OKLCHoklch(36.54% 0.156 279.9)
XYZxyz(7.0503, 4.3086, 25.6542)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A8D #838D2A
analogous
#2A518D #342A8D #652A8D
triadic
#342A8D #8D342A #2A8D34
tetradic
#342A8D #8D2A51 #838D2A #2A8D65
square
#342A8D #8D2A51 #838D2A #2A8D65
split-complementary
#342A8D #8D652A #518D2A
monochromatic
#110E2F #231C5E #342A8D #4538BC #6D61D0

Accessibility & contrast

On white

11.28
#342A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A8D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A8D#FFFFFF#000000##FFFFFF
##342A8D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342a8d;
/* rgb */ color: rgb(52, 42, 141);
/* oklch */ color: oklch(36.5% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#7765af',
    500: '#342a8d',
    950: '#000000',
  },
}
SCSS
$custom: #342a8d;
$custom-light: #7765af;
$custom-dark: #000000;
JSON
{
  "hex": "#342a8d",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 246.061,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36539,
    "c": 0.15628,
    "h": 279.9
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#342A8D
secondary
#ADB65D
accent
#DD4ACF
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #342A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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