#342C83#342C83

#342C83 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.140 H 280.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#342C83
RGBrgb(52, 44, 131)
HSLhsl(246, 50%, 34%)
HSVhsv(246, 66%, 51%)
CMYKcmyk(60.3%, 66.4%, 0%, 48.6%)
CIE-LABlab(24.22, 30.16, -47.89)
CIE-LCHlch(24.22, 56.60, 302.20°)
OKLaboklab(35.94% 0.0263 -0.1378)
OKLCHoklch(35.94% 0.14 280.8)
XYZxyz(6.4123, 4.1697, 21.9353)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C83 #7B832C
analogous
#2C5083 #342C83 #602C83
triadic
#342C83 #83342C #2C8334
tetradic
#342C83 #832C50 #7B832C #2C8360
square
#342C83 #832C50 #7B832C #2C8360
split-complementary
#342C83 #83602C #50832C
monochromatic
#100D27 #221D55 #342C83 #463BB1 #6A60CA

Accessibility & contrast

On white

11.45
#342C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C83
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C83#FFFFFF#000000##FFFFFF
##342C831.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#024253
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342c83;
/* rgb */ color: rgb(52, 44, 131);
/* oklch */ color: oklch(35.9% 0.140 280.8);
Tailwind
colors: {
  custom: {
    50: '#7466a8',
    500: '#342c83',
    950: '#000000',
  },
}
SCSS
$custom: #342c83;
$custom-light: #7466a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342c83",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 245.517,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35941,
    "c": 0.14026,
    "h": 280.8
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#342C83
secondary
#A8B05B
accent
#D94FCC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342C83

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

Preview Lab → · Contrast checker → · Palette generator →

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