#342B83#342B83

#342B83 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.142 H 281.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#342B83
RGBrgb(52, 43, 131)
HSLhsl(246, 51%, 34%)
HSVhsv(246, 67%, 51%)
CMYKcmyk(60.3%, 67.2%, 0%, 48.6%)
CIE-LABlab(23.99, 30.80, -48.28)
CIE-LCHlch(23.99, 57.27, 302.54°)
OKLaboklab(35.77% 0.0273 -0.1389)
OKLCHoklch(35.77% 0.142 281.1)
XYZxyz(6.3755, 4.0961, 21.9230)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B83 #7A832B
analogous
#2B4E83 #342B83 #602B83
triadic
#342B83 #83342B #2B8334
tetradic
#342B83 #832B4E #7A832B #2B8360
square
#342B83 #832B4E #7A832B #2B8360
split-complementary
#342B83 #83602B #4E832B
monochromatic
#0F0D27 #221C55 #342B83 #463AB1 #695ECA

Accessibility & contrast

On white

11.54
#342B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B83
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B83#FFFFFF#000000##FFFFFF
##342B831.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#024153
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342b83;
/* rgb */ color: rgb(52, 43, 131);
/* oklch */ color: oklch(35.8% 0.142 281.1);
Tailwind
colors: {
  custom: {
    50: '#7565a8',
    500: '#342b83',
    950: '#000000',
  },
}
SCSS
$custom: #342b83;
$custom-light: #7565a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342b83",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 246.136,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35768,
    "c": 0.14156,
    "h": 281.1
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#342B83
secondary
#A7B05A
accent
#DA4ECC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342B83

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

Preview Lab → · Contrast checker → · Palette generator →

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