#342B9A#342B9A

#342B9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.172 H 278.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#342B9A
RGBrgb(52, 43, 154)
HSLhsl(245, 56%, 39%)
HSVhsv(245, 72%, 60%)
CMYKcmyk(66.2%, 72.1%, 0%, 39.6%)
CIE-LABlab(26.13, 38.54, -59.03)
CIE-LCHlch(26.13, 70.49, 303.14°)
OKLaboklab(37.97% 0.0238 -0.1704)
OKLCHoklch(37.97% 0.172 278)
XYZxyz(8.1109, 4.7902, 31.0628)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B9A #919A2B
analogous
#2B599A #342B9A #6B2B9A
triadic
#342B9A #9A342B #2B9A34
tetradic
#342B9A #9A2B59 #919A2B #2B9A6B
square
#342B9A #9A2B59 #919A2B #2B9A6B
split-complementary
#342B9A #9A6B2B #599A2B
monochromatic
#14103A #241E6A #342B9A #463AC8 #736AD5

Accessibility & contrast

On white

10.72
#342B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#342B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B9A
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B9A#FFFFFF#000000##FFFFFF
##342B9A1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342b9a;
/* rgb */ color: rgb(52, 43, 154);
/* oklch */ color: oklch(38.0% 0.172 278.0);
Tailwind
colors: {
  custom: {
    50: '#7966b9',
    500: '#342b9a',
    950: '#000000',
  },
}
SCSS
$custom: #342b9a;
$custom-light: #7966b9;
$custom-dark: #000000;
JSON
{
  "hex": "#342b9a",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 244.865,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37966,
    "c": 0.17205,
    "h": 278
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#342B9A
secondary
#B5BC65
accent
#E048D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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