#342AB7#342AB7

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

Color values

HEX#342AB7
RGBrgb(52, 42, 183)
HSLhsl(244, 63%, 44%)
HSVhsv(244, 77%, 72%)
CMYKcmyk(71.6%, 77%, 0%, 28.2%)
CIE-LABlab(28.91, 48.51, -71.92)
CIE-LCHlch(28.91, 86.75, 304.00°)
OKLaboklab(40.83% 0.0184 -0.208)
OKLCHoklch(40.83% 0.209 275)
XYZxyz(10.7886, 5.8038, 45.3423)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB7 #ADB72A
analogous
#2A67B7 #342AB7 #7B2AB7
triadic
#342AB7 #B7342A #2AB734
tetradic
#342AB7 #B72A67 #ADB72A #2AB77B
square
#342AB7 #B72A67 #ADB72A #2AB77B
split-complementary
#342AB7 #B77B2A #67B72A
monochromatic
#181353 #261F85 #342AB7 #5349D5 #827BE1

Accessibility & contrast

On white

9.72
#342AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#342AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB7
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB7#FFFFFF#000000##FFFFFF
##342AB71.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342ab7;
/* rgb */ color: rgb(52, 42, 183);
/* oklch */ color: oklch(40.8% 0.209 275.0);
Tailwind
colors: {
  custom: {
    50: '#8066ce',
    500: '#342ab7',
    950: '#000000',
  },
}
SCSS
$custom: #342ab7;
$custom-light: #8066ce;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab7",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 244.255,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40829,
    "c": 0.20878,
    "h": 275
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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