#342AB1#342AB1

#342AB1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.2% C 0.202 H 275.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#342AB1
RGBrgb(52, 42, 177)
HSLhsl(244, 62%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(70.6%, 76.3%, 0%, 30.6%)
CIE-LABlab(28.27, 46.60, -69.40)
CIE-LCHlch(28.27, 83.59, 303.88°)
OKLaboklab(40.19% 0.0197 -0.2006)
OKLCHoklch(40.19% 0.202 275.6)
XYZxyz(10.1773, 5.5594, 42.1232)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB1 #A7B12A
analogous
#2A64B1 #342AB1 #772AB1
triadic
#342AB1 #B1342A #2AB134
tetradic
#342AB1 #B12A64 #A7B12A #2AB177
square
#342AB1 #B12A64 #A7B12A #2AB177
split-complementary
#342AB1 #B1772A #64B12A
monochromatic
#17134E #251E80 #342AB1 #5045D3 #7E77DF

Accessibility & contrast

On white

9.94
#342AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#342AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB1
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB1#FFFFFF#000000##FFFFFF
##342AB11.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342ab1;
/* rgb */ color: rgb(52, 42, 177);
/* oklch */ color: oklch(40.2% 0.202 275.6);
Tailwind
colors: {
  custom: {
    50: '#7e66ca',
    500: '#342ab1',
    950: '#000000',
  },
}
SCSS
$custom: #342ab1;
$custom-light: #7e66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab1",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 244.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4019,
    "c": 0.20161,
    "h": 275.6
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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