#342E8B#342E8B

#342E8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.149 H 279.1°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#342E8B
RGBrgb(52, 46, 139)
HSLhsl(244, 50%, 36%)
HSVhsv(244, 67%, 55%)
CMYKcmyk(62.6%, 66.9%, 0%, 45.5%)
CIE-LABlab(25.40, 31.63, -50.96)
CIE-LCHlch(25.40, 59.98, 301.83°)
OKLaboklab(37.02% 0.0236 -0.1468)
OKLCHoklch(37.02% 0.149 279.1)
XYZxyz(7.0519, 4.5476, 24.9273)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E8B #858B2E
analogous
#2E578B #342E8B #632E8B
triadic
#342E8B #8B342E #2E8B34
tetradic
#342E8B #8B2E57 #858B2E #2E8B63
square
#342E8B #8B2E57 #858B2E #2E8B63
split-complementary
#342E8B #8B632E #578B2E
monochromatic
#12102F #231F5D #342E8B #453DB9 #6D67CD

Accessibility & contrast

On white

11.00
#342E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E8B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E8B#FFFFFF#000000##FFFFFF
##342E8B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342e8b;
/* rgb */ color: rgb(52, 46, 139);
/* oklch */ color: oklch(37.0% 0.149 279.1);
Tailwind
colors: {
  custom: {
    50: '#7667ae',
    500: '#342e8b',
    950: '#000000',
  },
}
SCSS
$custom: #342e8b;
$custom-light: #7667ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342e8b",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 243.871,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37017,
    "c": 0.14867,
    "h": 279.1
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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