#342AB9#342AB9

#342AB9 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.211 H 274.9°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#342AB9
RGBrgb(52, 42, 185)
HSLhsl(244, 63%, 45%)
HSVhsv(244, 77%, 73%)
CMYKcmyk(71.9%, 77.3%, 0%, 27.5%)
CIE-LABlab(29.13, 49.13, -72.75)
CIE-LCHlch(29.13, 87.79, 304.04°)
OKLaboklab(41.04% 0.0179 -0.2104)
OKLCHoklch(41.04% 0.211 274.9)
XYZxyz(10.9982, 5.8877, 46.4464)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB9 #AFB92A
analogous
#2A67B9 #342AB9 #7C2AB9
triadic
#342AB9 #B9342A #2AB934
tetradic
#342AB9 #B92A67 #AFB92A #2AB97C
square
#342AB9 #B92A67 #AFB92A #2AB97C
split-complementary
#342AB9 #B97C2A #67B92A
monochromatic
#181355 #261F87 #342AB9 #544AD6 #837CE1

Accessibility & contrast

On white

9.64
#342AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#342AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AB9
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB9#FFFFFF#000000##FFFFFF
##342AB91.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342ab9;
/* rgb */ color: rgb(52, 42, 185);
/* oklch */ color: oklch(41.0% 0.211 274.9);
Tailwind
colors: {
  custom: {
    50: '#8067cf',
    500: '#342ab9',
    950: '#000000',
  },
}
SCSS
$custom: #342ab9;
$custom-light: #8067cf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab9",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 244.196,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41044,
    "c": 0.21115,
    "h": 274.9
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#342AB9
secondary
#C4CA75
accent
#E642DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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