#342BA8#342BA8

#342BA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.190 H 276.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#342BA8
RGBrgb(52, 43, 168)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 74%, 66%)
CMYKcmyk(69%, 74.4%, 0%, 34.1%)
CIE-LABlab(27.53, 43.15, -65.22)
CIE-LCHlch(27.53, 78.20, 303.49°)
OKLaboklab(39.39% 0.0211 -0.1885)
OKLCHoklch(39.39% 0.19 276.4)
XYZxyz(9.3456, 5.2841, 37.5656)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA8 #9FA82B
analogous
#2B61A8 #342BA8 #732BA8
triadic
#342BA8 #A8342B #2BA834
tetradic
#342BA8 #A82B61 #9FA82B #2BA873
square
#342BA8 #A82B61 #9FA82B #2BA873
split-complementary
#342BA8 #A8732B #61A82B
monochromatic
#161247 #251F77 #342BA8 #4C42CF #7A72DB

Accessibility & contrast

On white

10.21
#342BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342BA8
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA8#FFFFFF#000000##FFFFFF
##342BA81.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ba8;
/* rgb */ color: rgb(52, 43, 168);
/* oklch */ color: oklch(39.4% 0.190 276.4);
Tailwind
colors: {
  custom: {
    50: '#7c66c3',
    500: '#342ba8',
    950: '#000000',
  },
}
SCSS
$custom: #342ba8;
$custom-light: #7c66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba8",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 244.32,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39385,
    "c": 0.18966,
    "h": 276.4
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#342BA8
secondary
#BCC26C
accent
#E245D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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