#342E8A#342E8A

#342E8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.147 H 279.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#342E8A
RGBrgb(52, 46, 138)
HSLhsl(244, 50%, 36%)
HSVhsv(244, 67%, 54%)
CMYKcmyk(62.3%, 66.7%, 0%, 45.9%)
CIE-LABlab(25.32, 31.29, -50.48)
CIE-LCHlch(25.32, 59.39, 301.79°)
OKLaboklab(36.93% 0.0237 -0.1454)
OKLCHoklch(36.93% 0.147 279.3)
XYZxyz(6.9792, 4.5185, 24.5442)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E8A #848A2E
analogous
#2E568A #342E8A #622E8A
triadic
#342E8A #8A342E #2E8A34
tetradic
#342E8A #8A2E56 #848A2E #2E8A62
square
#342E8A #8A2E56 #848A2E #2E8A62
split-complementary
#342E8A #8A622E #568A2E
monochromatic
#110F2E #231F5C #342E8A #453DB8 #6D66CC

Accessibility & contrast

On white

11.03
#342E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E8A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E8A#FFFFFF#000000##FFFFFF
##342E8A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342e8a;
/* rgb */ color: rgb(52, 46, 138);
/* oklch */ color: oklch(36.9% 0.147 279.3);
Tailwind
colors: {
  custom: {
    50: '#7667ad',
    500: '#342e8a',
    950: '#000000',
  },
}
SCSS
$custom: #342e8a;
$custom-light: #7667ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342e8a",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 243.913,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36925,
    "c": 0.14729,
    "h": 279.3
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#342E8A
secondary
#AEB361
accent
#DA4ED0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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