#342B6A#342B6A

#342B6A is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.106 H 285.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#342B6A
RGBrgb(52, 43, 106)
HSLhsl(249, 42%, 29%)
HSVhsv(249, 59%, 42%)
CMYKcmyk(50.9%, 59.4%, 0%, 58.4%)
CIE-LABlab(21.94, 22.32, -35.66)
CIE-LCHlch(21.94, 42.07, 302.05°)
OKLaboklab(33.62% 0.0287 -0.1018)
OKLCHoklch(33.62% 0.106 285.7)
XYZxyz(4.8808, 3.4982, 14.0509)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B6A #616A2B
analogous
#2B426A #342B6A #542B6A
triadic
#342B6A #6A342B #2B6A34
tetradic
#342B6A #6A2B42 #616A2B #2B6A54
square
#342B6A #6A2B42 #616A2B #2B6A54
split-complementary
#342B6A #6A542B #426A2B
monochromatic
#0B0916 #1F193E #342B6A #493D96 #6455BA

Accessibility & contrast

On white

12.36
#342B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B6A
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B6A#FFFFFF#000000##FFFFFF
##342B6A1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04366C
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#213946
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342b6a;
/* rgb */ color: rgb(52, 43, 106);
/* oklch */ color: oklch(33.6% 0.106 285.7);
Tailwind
colors: {
  custom: {
    50: '#706495',
    500: '#342b6a',
    950: '#000000',
  },
}
SCSS
$custom: #342b6a;
$custom-light: #706495;
$custom-dark: #000000;
JSON
{
  "hex": "#342b6a",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 106
  },
  "hsl": {
    "h": 248.571,
    "s": 42.282,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33623,
    "c": 0.10578,
    "h": 285.7
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#342B6A
secondary
#929C55
accent
#D256C0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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