#342DAB#342DAB

#342DAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.191 H 275.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#342DAB
RGBrgb(52, 45, 171)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 74%, 67%)
CMYKcmyk(69.6%, 73.7%, 0%, 32.9%)
CIE-LABlab(28.24, 43.00, -65.86)
CIE-LCHlch(28.24, 78.66, 303.14°)
OKLaboklab(39.98% 0.0193 -0.1904)
OKLCHoklch(39.98% 0.191 275.8)
XYZxyz(9.7028, 5.5462, 39.0794)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DAB #A4AB2D
analogous
#2D65AB #342DAB #732DAB
triadic
#342DAB #AB342D #2DAB34
tetradic
#342DAB #AB2D65 #A4AB2D #2DAB73
square
#342DAB #AB2D65 #A4AB2D #2DAB73
split-complementary
#342DAB #AB732D #65AB2D
monochromatic
#17144A #25207B #342DAB #4E47CE #7D77DB

Accessibility & contrast

On white

9.96
#342DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342DAB
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DAB#FFFFFF#000000##FFFFFF
##342DAB1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342dab;
/* rgb */ color: rgb(52, 45, 171);
/* oklch */ color: oklch(40.0% 0.191 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d68c5',
    500: '#342dab',
    950: '#000000',
  },
}
SCSS
$custom: #342dab;
$custom-light: #7d68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342dab",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 243.333,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.19134,
    "h": 275.8
  },
  "luminance": 0.05547
}

Semantic roles & 50–950 ramp

primary
#342DAB
secondary
#BFC371
accent
#E246D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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