#342BBF#342BBF

#342BBF is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.8% C 0.217 H 274.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#342BBF
RGBrgb(52, 43, 191)
HSLhsl(244, 63%, 46%)
HSVhsv(244, 77%, 75%)
CMYKcmyk(72.8%, 77.5%, 0%, 25.1%)
CIE-LABlab(29.96, 50.50, -74.93)
CIE-LCHlch(29.96, 90.36, 303.98°)
OKLaboklab(41.82% 0.0161 -0.2167)
OKLCHoklch(41.82% 0.217 274.3)
XYZxyz(11.6809, 6.2182, 49.8648)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BBF #B6BF2B
analogous
#2B6CBF #342BBF #7E2BBF
triadic
#342BBF #BF342B #2BBF34
tetradic
#342BBF #BF2B6C #B6BF2B #2BBF7E
square
#342BBF #BF2B6C #B6BF2B #2BBF7E
split-complementary
#342BBF #BF7E2B #6CBF2B
monochromatic
#19155B #26208D #342BBF #5850D8 #8882E3

Accessibility & contrast

On white

9.36
#342BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#342BBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BBF
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BBF#FFFFFF#000000##FFFFFF
##342BBF1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC3
Deuteranopia (green-blind)
#0040BC
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342bbf;
/* rgb */ color: rgb(52, 43, 191);
/* oklch */ color: oklch(41.8% 0.217 274.3);
Tailwind
colors: {
  custom: {
    50: '#8168d4',
    500: '#342bbf',
    950: '#000000',
  },
}
SCSS
$custom: #342bbf;
$custom-light: #8168d4;
$custom-dark: #000000;
JSON
{
  "hex": "#342bbf",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 191
  },
  "hsl": {
    "h": 243.649,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.21733,
    "h": 274.3
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#342BBF
secondary
#C7CC7A
accent
#E642DC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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