#342DAE#342DAE

#342DAE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.195 H 275.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#342DAE
RGBrgb(52, 45, 174)
HSLhsl(243, 59%, 43%)
HSVhsv(243, 74%, 68%)
CMYKcmyk(70.1%, 74.1%, 0%, 31.8%)
CIE-LABlab(28.54, 43.98, -67.16)
CIE-LCHlch(28.54, 80.28, 303.22°)
OKLaboklab(40.29% 0.0188 -0.1941)
OKLCHoklch(40.29% 0.195 275.5)
XYZxyz(9.9920, 5.6619, 40.6025)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DAE #A7AE2D
analogous
#2D66AE #342DAE #742DAE
triadic
#342DAE #AE342D #2DAE34
tetradic
#342DAE #AE2D66 #A7AE2D #2DAE74
square
#342DAE #AE2D66 #A7AE2D #2DAE74
split-complementary
#342DAE #AE742D #66AE2D
monochromatic
#17144D #25207D #342DAE #5048D0 #7E79DC

Accessibility & contrast

On white

9.85
#342DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DAE
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DAE#FFFFFF#000000##FFFFFF
##342DAE1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342dae;
/* rgb */ color: rgb(52, 45, 174);
/* oklch */ color: oklch(40.3% 0.195 275.5);
Tailwind
colors: {
  custom: {
    50: '#7d68c7',
    500: '#342dae',
    950: '#000000',
  },
}
SCSS
$custom: #342dae;
$custom-light: #7d68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342dae",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 243.256,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40288,
    "c": 0.19504,
    "h": 275.5
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#342DAE
secondary
#C0C472
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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