#342BA9#342BA9

#342BA9 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.191 H 276.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#342BA9
RGBrgb(52, 43, 169)
HSLhsl(244, 59%, 42%)
HSVhsv(244, 75%, 66%)
CMYKcmyk(69.2%, 74.6%, 0%, 33.7%)
CIE-LABlab(27.63, 43.48, -65.66)
CIE-LCHlch(27.63, 78.75, 303.51°)
OKLaboklab(39.49% 0.0209 -0.1897)
OKLCHoklch(39.49% 0.191 276.3)
XYZxyz(9.4391, 5.3215, 38.0581)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA9 #A0A92B
analogous
#2B61A9 #342BA9 #732BA9
triadic
#342BA9 #A9342B #2BA934
tetradic
#342BA9 #A92B61 #A0A92B #2BA973
square
#342BA9 #A92B61 #A0A92B #2BA973
split-complementary
#342BA9 #A9732B #61A92B
monochromatic
#161247 #251F78 #342BA9 #4C42CF #7A73DB

Accessibility & contrast

On white

10.17
#342BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BA9
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA9#FFFFFF#000000##FFFFFF
##342BA91.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ba9;
/* rgb */ color: rgb(52, 43, 169);
/* oklch */ color: oklch(39.5% 0.191 276.3);
Tailwind
colors: {
  custom: {
    50: '#7d66c4',
    500: '#342ba9',
    950: '#000000',
  },
}
SCSS
$custom: #342ba9;
$custom-light: #7d66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba9",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 244.286,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39489,
    "c": 0.1909,
    "h": 276.3
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#342BA9
secondary
#BDC36D
accent
#E345D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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