#342AB5#342AB5

#342AB5 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.206 H 275.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#342AB5
RGBrgb(52, 42, 181)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 77%, 71%)
CMYKcmyk(71.3%, 76.8%, 0%, 29%)
CIE-LABlab(28.70, 47.87, -71.08)
CIE-LCHlch(28.70, 85.70, 303.96°)
OKLaboklab(40.62% 0.0188 -0.2055)
OKLCHoklch(40.62% 0.206 275.2)
XYZxyz(10.5819, 5.7212, 44.2537)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB5 #ABB52A
analogous
#2A65B5 #342AB5 #792AB5
triadic
#342AB5 #B5342A #2AB534
tetradic
#342AB5 #B52A65 #ABB52A #2AB579
square
#342AB5 #B52A65 #ABB52A #2AB579
split-complementary
#342AB5 #B5792A #65B52A
monochromatic
#171352 #261E83 #342AB5 #5248D4 #8179E0

Accessibility & contrast

On white

9.79
#342AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342AB5
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB5#FFFFFF#000000##FFFFFF
##342AB51.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342ab5;
/* rgb */ color: rgb(52, 42, 181);
/* oklch */ color: oklch(40.6% 0.206 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f66cd',
    500: '#342ab5',
    950: '#000000',
  },
}
SCSS
$custom: #342ab5;
$custom-light: #7f66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab5",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 244.317,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40615,
    "c": 0.2064,
    "h": 275.2
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#342AB5
secondary
#C2C873
accent
#E542DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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