#342CBF#342CBF

#342CBF is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.216 H 274.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#342CBF
RGBrgb(52, 44, 191)
HSLhsl(243, 63%, 46%)
HSVhsv(243, 77%, 75%)
CMYKcmyk(72.8%, 77%, 0%, 25.1%)
CIE-LABlab(30.14, 49.98, -74.63)
CIE-LCHlch(30.14, 89.82, 303.81°)
OKLaboklab(41.94% 0.0157 -0.2159)
OKLCHoklch(41.94% 0.216 274.2)
XYZxyz(11.7177, 6.2918, 49.8770)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CBF #B7BF2C
analogous
#2C6DBF #342CBF #7D2CBF
triadic
#342CBF #BF342C #2CBF34
tetradic
#342CBF #BF2C6D #B7BF2C #2CBF7D
square
#342CBF #BF2C6D #B7BF2C #2CBF7D
split-complementary
#342CBF #BF7D2C #6DBF2C
monochromatic
#19155C #26218D #342CBF #5951D7 #8883E2

Accessibility & contrast

On white

9.30
#342CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#342CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CBF
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CBF#FFFFFF#000000##FFFFFF
##342CBF1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342cbf;
/* rgb */ color: rgb(52, 44, 191);
/* oklch */ color: oklch(41.9% 0.216 274.2);
Tailwind
colors: {
  custom: {
    50: '#8168d4',
    500: '#342cbf',
    950: '#000000',
  },
}
SCSS
$custom: #342cbf;
$custom-light: #8168d4;
$custom-dark: #000000;
JSON
{
  "hex": "#342cbf",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 243.265,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41943,
    "c": 0.21644,
    "h": 274.2
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#342CBF
secondary
#C7CC7B
accent
#E642DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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