#342DA0#342DA0

#342DA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.178 H 276.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#342DA0
RGBrgb(52, 45, 160)
HSLhsl(244, 56%, 40%)
HSVhsv(244, 72%, 63%)
CMYKcmyk(67.5%, 71.9%, 0%, 37.3%)
CIE-LABlab(27.14, 39.36, -61.02)
CIE-LCHlch(27.14, 72.61, 302.82°)
OKLaboklab(38.87% 0.0214 -0.1762)
OKLCHoklch(38.87% 0.178 276.9)
XYZxyz(8.6977, 5.1441, 33.7855)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA0 #99A02D
analogous
#2D60A0 #342DA0 #6D2DA0
triadic
#342DA0 #A0342D #2DA034
tetradic
#342DA0 #A02D60 #99A02D #2DA06D
square
#342DA0 #A02D60 #99A02D #2DA06D
split-complementary
#342DA0 #A06D2D #60A02D
monochromatic
#151240 #242070 #342DA0 #4941C9 #7770D7

Accessibility & contrast

On white

10.35
#342DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#342DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DA0
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA0#FFFFFF#000000##FFFFFF
##342DA01.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342da0;
/* rgb */ color: rgb(52, 45, 160);
/* oklch */ color: oklch(38.9% 0.178 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a67bd',
    500: '#342da0',
    950: '#000000',
  },
}
SCSS
$custom: #342da0;
$custom-light: #7a67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342da0",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 243.652,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38868,
    "c": 0.17751,
    "h": 276.9
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#342DA0
secondary
#B9BE6B
accent
#DF48D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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