#342E9B#342E9B

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

Color values

HEX#342E9B
RGBrgb(52, 46, 155)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 61%)
CMYKcmyk(66.5%, 70.3%, 0%, 39.2%)
CIE-LABlab(26.88, 37.08, -58.41)
CIE-LCHlch(26.88, 69.19, 302.41°)
OKLaboklab(38.53% 0.0215 -0.1686)
OKLCHoklch(38.53% 0.17 277.3)
XYZxyz(8.3076, 5.0499, 31.5409)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E9B #959B2E
analogous
#2E5F9B #342E9B #6B2E9B
triadic
#342E9B #9B342E #2E9B34
tetradic
#342E9B #9B2E5F #959B2E #2E9B6B
square
#342E9B #9B2E5F #959B2E #2E9B6B
split-complementary
#342E9B #9B6B2E #5F9B2E
monochromatic
#14123D #24206C #342E9B #4740C6 #756FD4

Accessibility & contrast

On white

10.45
#342E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E9B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E9B#FFFFFF#000000##FFFFFF
##342E9B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342e9b;
/* rgb */ color: rgb(52, 46, 155);
/* oklch */ color: oklch(38.5% 0.170 277.3);
Tailwind
colors: {
  custom: {
    50: '#7968ba',
    500: '#342e9b',
    950: '#000000',
  },
}
SCSS
$custom: #342e9b;
$custom-light: #7968ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342e9b",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 243.303,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38532,
    "c": 0.16995,
    "h": 277.3
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#342E9B
secondary
#B7BC69
accent
#DE4AD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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