#342AB8#342AB8

#342AB8 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.210 H 275.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#342AB8
RGBrgb(52, 42, 184)
HSLhsl(244, 63%, 44%)
HSVhsv(244, 77%, 72%)
CMYKcmyk(71.7%, 77.2%, 0%, 27.8%)
CIE-LABlab(29.02, 48.82, -72.33)
CIE-LCHlch(29.02, 87.27, 304.02°)
OKLaboklab(40.94% 0.0181 -0.2092)
OKLCHoklch(40.94% 0.21 275)
XYZxyz(10.8930, 5.8456, 45.8924)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB8 #AEB82A
analogous
#2A67B8 #342AB8 #7B2AB8
triadic
#342AB8 #B8342A #2AB834
tetradic
#342AB8 #B82A67 #AEB82A #2AB87B
square
#342AB8 #B82A67 #AEB82A #2AB87B
split-complementary
#342AB8 #B87B2A #67B82A
monochromatic
#181354 #261F86 #342AB8 #534AD6 #837BE1

Accessibility & contrast

On white

9.68
#342AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#342AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB8
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB8#FFFFFF#000000##FFFFFF
##342AB81.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005470
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342ab8;
/* rgb */ color: rgb(52, 42, 184);
/* oklch */ color: oklch(40.9% 0.210 275.0);
Tailwind
colors: {
  custom: {
    50: '#8067cf',
    500: '#342ab8',
    950: '#000000',
  },
}
SCSS
$custom: #342ab8;
$custom-light: #8067cf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab8",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 244.225,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40936,
    "c": 0.20996,
    "h": 275
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#342AB8
secondary
#C3C975
accent
#E642DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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