#342BAE#342BAE

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

Color values

HEX#342BAE
RGBrgb(52, 43, 174)
HSLhsl(244, 60%, 43%)
HSVhsv(244, 75%, 68%)
CMYKcmyk(70.1%, 75.3%, 0%, 31.8%)
CIE-LABlab(28.15, 45.10, -67.81)
CIE-LCHlch(28.15, 81.43, 303.63°)
OKLaboklab(40.01% 0.0198 -0.196)
OKLCHoklch(40.01% 0.197 275.8)
XYZxyz(9.9175, 5.5129, 40.5776)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BAE #A5AE2B
analogous
#2B64AE #342BAE #752BAE
triadic
#342BAE #AE342B #2BAE34
tetradic
#342BAE #AE2B64 #A5AE2B #2BAE75
square
#342BAE #AE2B64 #A5AE2B #2BAE75
split-complementary
#342BAE #AE752B #64AE2B
monochromatic
#17134C #251F7D #342BAE #4F45D1 #7D76DD

Accessibility & contrast

On white

9.99
#342BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#342BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BAE
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BAE#FFFFFF#000000##FFFFFF
##342BAE1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342bae;
/* rgb */ color: rgb(52, 43, 174);
/* oklch */ color: oklch(40.0% 0.197 275.8);
Tailwind
colors: {
  custom: {
    50: '#7e67c7',
    500: '#342bae',
    950: '#000000',
  },
}
SCSS
$custom: #342bae;
$custom-light: #7e67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342bae",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 244.122,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40009,
    "c": 0.19702,
    "h": 275.8
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#342BAE
secondary
#BFC570
accent
#E444D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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