#342E9D#342E9D

#342E9D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.173 H 277.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#342E9D
RGBrgb(52, 46, 157)
HSLhsl(243, 55%, 40%)
HSVhsv(243, 71%, 62%)
CMYKcmyk(66.9%, 70.7%, 0%, 38.4%)
CIE-LABlab(27.07, 37.76, -59.31)
CIE-LCHlch(27.07, 70.31, 302.48°)
OKLaboklab(38.73% 0.0212 -0.1713)
OKLCHoklch(38.73% 0.173 277)
XYZxyz(8.4770, 5.1177, 32.4328)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E9D #979D2E
analogous
#2E609D #342E9D #6B2E9D
triadic
#342E9D #9D342E #2E9D34
tetradic
#342E9D #9D2E60 #979D2E #2E9D6B
square
#342E9D #9D2E60 #979D2E #2E9D6B
split-complementary
#342E9D #9D6B2E #609D2E
monochromatic
#15123E #24206E #342E9D #4841C7 #7670D5

Accessibility & contrast

On white

10.38
#342E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#342E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E9D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E9D#FFFFFF#000000##FFFFFF
##342E9D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342e9d;
/* rgb */ color: rgb(52, 46, 157);
/* oklch */ color: oklch(38.7% 0.173 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a68bb',
    500: '#342e9d',
    950: '#000000',
  },
}
SCSS
$custom: #342e9d;
$custom-light: #7a68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#342e9d",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 243.243,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.17255,
    "h": 277
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#342E9D
secondary
#B8BD6A
accent
#DE4AD6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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