#342C9E#342C9E

#342C9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.176 H 277.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#342C9E
RGBrgb(52, 44, 158)
HSLhsl(244, 56%, 40%)
HSVhsv(244, 72%, 62%)
CMYKcmyk(67.1%, 72.2%, 0%, 38%)
CIE-LABlab(26.73, 39.28, -60.47)
CIE-LCHlch(26.73, 72.11, 303.01°)
OKLaboklab(38.52% 0.0224 -0.1746)
OKLCHoklch(38.52% 0.176 277.3)
XYZxyz(8.4864, 4.9993, 32.8589)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C9E #969E2C
analogous
#2C5D9E #342C9E #6D2C9E
triadic
#342C9E #9E342C #2C9E34
tetradic
#342C9E #9E2C5D #969E2C #2C9E6D
square
#342C9E #9E2C5D #969E2C #2C9E6D
split-complementary
#342C9E #9E6D2C #5D9E2C
monochromatic
#14113E #241F6E #342C9E #483EC9 #756ED7

Accessibility & contrast

On white

10.50
#342C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C9E
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C9E#FFFFFF#000000##FFFFFF
##342C9E1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342c9e;
/* rgb */ color: rgb(52, 44, 158);
/* oklch */ color: oklch(38.5% 0.176 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a67bc',
    500: '#342c9e',
    950: '#000000',
  },
}
SCSS
$custom: #342c9e;
$custom-light: #7a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#342c9e",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 244.211,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.17606,
    "h": 277.3
  },
  "luminance": 0.05
}

Semantic roles & 50–950 ramp

primary
#342C9E
secondary
#B8BE68
accent
#E048D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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