#342E9A#342E9A

#342E9A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.169 H 277.4°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#342E9A
RGBrgb(52, 46, 154)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 60%)
CMYKcmyk(66.2%, 70.1%, 0%, 39.6%)
CIE-LABlab(26.78, 36.74, -57.95)
CIE-LCHlch(26.78, 68.62, 302.38°)
OKLaboklab(38.44% 0.0216 -0.1673)
OKLCHoklch(38.44% 0.169 277.4)
XYZxyz(8.2240, 5.0165, 31.1005)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E9A #949A2E
analogous
#2E5E9A #342E9A #6A2E9A
triadic
#342E9A #9A342E #2E9A34
tetradic
#342E9A #9A2E5E #949A2E #2E9A6A
square
#342E9A #9A2E5E #949A2E #2E9A6A
split-complementary
#342E9A #9A6A2E #5E9A2E
monochromatic
#14123C #24206B #342E9A #473FC6 #746FD4

Accessibility & contrast

On white

10.48
#342E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E9A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E9A#FFFFFF#000000##FFFFFF
##342E9A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342e9a;
/* rgb */ color: rgb(52, 46, 154);
/* oklch */ color: oklch(38.4% 0.169 277.4);
Tailwind
colors: {
  custom: {
    50: '#7968b9',
    500: '#342e9a',
    950: '#000000',
  },
}
SCSS
$custom: #342e9a;
$custom-light: #7968b9;
$custom-dark: #000000;
JSON
{
  "hex": "#342e9a",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 243.333,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38435,
    "c": 0.16865,
    "h": 277.4
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#342E9A
secondary
#B7BB69
accent
#DD4AD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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