#342B8A#342B8A

#342B8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.151 H 280.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#342B8A
RGBrgb(52, 43, 138)
HSLhsl(246, 52%, 35%)
HSVhsv(246, 69%, 54%)
CMYKcmyk(62.3%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.62, 33.17, -51.63)
CIE-LCHlch(24.62, 61.37, 302.72°)
OKLaboklab(36.42% 0.0264 -0.1487)
OKLCHoklch(36.42% 0.151 280.1)
XYZxyz(6.8660, 4.2923, 24.5065)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B8A #818A2B
analogous
#2B518A #342B8A #632B8A
triadic
#342B8A #8A342B #2B8A34
tetradic
#342B8A #8A2B51 #818A2B #2B8A63
square
#342B8A #8A2B51 #818A2B #2B8A63
split-complementary
#342B8A #8A632B #518A2B
monochromatic
#110E2D #221C5B #342B8A #463AB9 #6C61CE

Accessibility & contrast

On white

11.30
#342B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B8A
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B8A#FFFFFF#000000##FFFFFF
##342B8A1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342b8a;
/* rgb */ color: rgb(52, 43, 138);
/* oklch */ color: oklch(36.4% 0.151 280.1);
Tailwind
colors: {
  custom: {
    50: '#7665ad',
    500: '#342b8a',
    950: '#000000',
  },
}
SCSS
$custom: #342b8a;
$custom-light: #7665ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342b8a",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 245.684,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.15106,
    "h": 280.1
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#342B8A
secondary
#ACB45D
accent
#DC4CCE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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