#342AC0#342AC0

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

Color values

HEX#342AC0
RGBrgb(52, 42, 192)
HSLhsl(244, 64%, 46%)
HSVhsv(244, 78%, 75%)
CMYKcmyk(72.9%, 78.1%, 0%, 24.7%)
CIE-LABlab(29.89, 51.32, -75.63)
CIE-LCHlch(29.89, 91.40, 304.16°)
OKLaboklab(41.8% 0.0163 -0.2187)
OKLCHoklch(41.8% 0.219 274.3)
XYZxyz(11.7554, 6.1906, 50.4343)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AC0 #B6C02A
analogous
#2A6BC0 #342AC0 #7F2AC0
triadic
#342AC0 #C0342A #2AC034
tetradic
#342AC0 #C02A6B #B6C02A #2AC07F
square
#342AC0 #C02A6B #B6C02A #2AC07F
split-complementary
#342AC0 #C07F2A #6BC02A
monochromatic
#19145C #261F8E #342AC0 #584FD8 #8881E3

Accessibility & contrast

On white

9.38
#342AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342AC0
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AC0#FFFFFF#000000##FFFFFF
##342AC01.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC4
Deuteranopia (green-blind)
#003FBD
Tritanopia (blue-blind)
#005875
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342ac0;
/* rgb */ color: rgb(52, 42, 192);
/* oklch */ color: oklch(41.8% 0.219 274.3);
Tailwind
colors: {
  custom: {
    50: '#8267d4',
    500: '#342ac0',
    950: '#000000',
  },
}
SCSS
$custom: #342ac0;
$custom-light: #8267d4;
$custom-dark: #000000;
JSON
{
  "hex": "#342ac0",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 244,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41801,
    "c": 0.21936,
    "h": 274.3
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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