#342AB4#342AB4

#342AB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.205 H 275.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#342AB4
RGBrgb(52, 42, 180)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 77%, 71%)
CMYKcmyk(71.1%, 76.7%, 0%, 29.4%)
CIE-LABlab(28.59, 47.55, -70.66)
CIE-LCHlch(28.59, 85.17, 303.94°)
OKLaboklab(40.51% 0.019 -0.2043)
OKLCHoklch(40.51% 0.205 275.3)
XYZxyz(10.4796, 5.6803, 43.7153)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB4 #AAB42A
analogous
#2A65B4 #342AB4 #792AB4
triadic
#342AB4 #B4342A #2AB434
tetradic
#342AB4 #B42A65 #AAB42A #2AB479
square
#342AB4 #B42A65 #AAB42A #2AB479
split-complementary
#342AB4 #B4792A #65B42A
monochromatic
#171351 #261E82 #342AB4 #5147D4 #8079E0

Accessibility & contrast

On white

9.83
#342AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#342AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB4
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB4#FFFFFF#000000##FFFFFF
##342AB41.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342ab4;
/* rgb */ color: rgb(52, 42, 180);
/* oklch */ color: oklch(40.5% 0.205 275.3);
Tailwind
colors: {
  custom: {
    50: '#7f66cc',
    500: '#342ab4',
    950: '#000000',
  },
}
SCSS
$custom: #342ab4;
$custom-light: #7f66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab4",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 244.348,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40508,
    "c": 0.20521,
    "h": 275.3
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#342AB4
secondary
#C1C872
accent
#E543D9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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