#342DA1#342DA1

#342DA1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.179 H 276.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#342DA1
RGBrgb(52, 45, 161)
HSLhsl(244, 56%, 40%)
HSVhsv(244, 72%, 63%)
CMYKcmyk(67.7%, 72%, 0%, 36.9%)
CIE-LABlab(27.24, 39.69, -61.46)
CIE-LCHlch(27.24, 73.17, 302.85°)
OKLaboklab(38.97% 0.0212 -0.1775)
OKLCHoklch(38.97% 0.179 276.8)
XYZxyz(8.7855, 5.1793, 34.2480)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA1 #9AA12D
analogous
#2D60A1 #342DA1 #6E2DA1
triadic
#342DA1 #A1342D #2DA134
tetradic
#342DA1 #A12D60 #9AA12D #2DA16E
square
#342DA1 #A12D60 #9AA12D #2DA16E
split-complementary
#342DA1 #A16E2D #60A12D
monochromatic
#151241 #252071 #342DA1 #4941CA #7771D7

Accessibility & contrast

On white

10.31
#342DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DA1
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA1#FFFFFF#000000##FFFFFF
##342DA11.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342da1;
/* rgb */ color: rgb(52, 45, 161);
/* oklch */ color: oklch(39.0% 0.179 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b67be',
    500: '#342da1',
    950: '#000000',
  },
}
SCSS
$custom: #342da1;
$custom-light: #7b67be;
$custom-dark: #000000;
JSON
{
  "hex": "#342da1",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 243.621,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.17879,
    "h": 276.8
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#342DA1
secondary
#BABF6B
accent
#E048D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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