#342AB3#342AB3

#342AB3 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.204 H 275.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#342AB3
RGBrgb(52, 42, 179)
HSLhsl(244, 62%, 43%)
HSVhsv(244, 77%, 70%)
CMYKcmyk(70.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(28.48, 47.24, -70.24)
CIE-LCHlch(28.48, 84.65, 303.92°)
OKLaboklab(40.4% 0.0193 -0.2031)
OKLCHoklch(40.4% 0.204 275.4)
XYZxyz(10.3781, 5.6397, 43.1807)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB3 #A9B32A
analogous
#2A64B3 #342AB3 #792AB3
triadic
#342AB3 #B3342A #2AB334
tetradic
#342AB3 #B32A64 #A9B32A #2AB379
square
#342AB3 #B32A64 #A9B32A #2AB379
split-complementary
#342AB3 #B3792A #64B32A
monochromatic
#171350 #261E81 #342AB3 #5146D4 #8078DF

Accessibility & contrast

On white

9.87
#342AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB3
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB3#FFFFFF#000000##FFFFFF
##342AB31.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342ab3;
/* rgb */ color: rgb(52, 42, 179);
/* oklch */ color: oklch(40.4% 0.204 275.4);
Tailwind
colors: {
  custom: {
    50: '#7f66cb',
    500: '#342ab3',
    950: '#000000',
  },
}
SCSS
$custom: #342ab3;
$custom-light: #7f66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab3",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 244.38,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40402,
    "c": 0.20401,
    "h": 275.4
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#342AB3
secondary
#C1C772
accent
#E543D9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #342AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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