#342E83#342E83

#342E83 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.138 H 280.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#342E83
RGBrgb(52, 46, 131)
HSLhsl(244, 48%, 35%)
HSVhsv(244, 65%, 51%)
CMYKcmyk(60.3%, 64.9%, 0%, 48.6%)
CIE-LABlab(24.71, 28.88, -47.10)
CIE-LCHlch(24.71, 55.25, 301.51°)
OKLaboklab(36.29% 0.0244 -0.1354)
OKLCHoklch(36.29% 0.138 280.2)
XYZxyz(6.4886, 4.3223, 21.9607)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E83 #7D832E
analogous
#2E5383 #342E83 #5E2E83
triadic
#342E83 #83342E #2E8334
tetradic
#342E83 #832E53 #7D832E #2E835E
square
#342E83 #832E53 #7D832E #2E835E
split-complementary
#342E83 #835E2E #53832E
monochromatic
#100E28 #221E56 #342E83 #463EB0 #6A63C8

Accessibility & contrast

On white

11.26
#342E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E83
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E83#FFFFFF#000000##FFFFFF
##342E831.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#014354
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342e83;
/* rgb */ color: rgb(52, 46, 131);
/* oklch */ color: oklch(36.3% 0.138 280.2);
Tailwind
colors: {
  custom: {
    50: '#7467a8',
    500: '#342e83',
    950: '#000000',
  },
}
SCSS
$custom: #342e83;
$custom-light: #7467a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342e83",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 244.235,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36294,
    "c": 0.13762,
    "h": 280.2
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#342E83
secondary
#A9AF5E
accent
#D850CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E83

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

Preview Lab → · Contrast checker → · Palette generator →

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