#342B85#342B85

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

Color values

HEX#342B85
RGBrgb(52, 43, 133)
HSLhsl(246, 51%, 35%)
HSVhsv(246, 68%, 52%)
CMYKcmyk(60.9%, 67.7%, 0%, 47.8%)
CIE-LABlab(24.16, 31.48, -49.25)
CIE-LCHlch(24.16, 58.45, 302.59°)
OKLaboklab(35.95% 0.027 -0.1417)
OKLCHoklch(35.95% 0.144 280.8)
XYZxyz(6.5124, 4.1508, 22.6438)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B85 #7C852B
analogous
#2B4F85 #342B85 #612B85
triadic
#342B85 #85342B #2B8534
tetradic
#342B85 #852B4F #7C852B #2B8561
square
#342B85 #852B4F #7C852B #2B8561
split-complementary
#342B85 #85612B #4F852B
monochromatic
#100D29 #221C57 #342B85 #463AB3 #6A5FCB

Accessibility & contrast

On white

11.47
#342B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B85
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B85#FFFFFF#000000##FFFFFF
##342B851.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342b85;
/* rgb */ color: rgb(52, 43, 133);
/* oklch */ color: oklch(36.0% 0.144 280.8);
Tailwind
colors: {
  custom: {
    50: '#7565a9',
    500: '#342b85',
    950: '#000000',
  },
}
SCSS
$custom: #342b85;
$custom-light: #7565a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342b85",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 246,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35951,
    "c": 0.14431,
    "h": 280.8
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#342B85
secondary
#A9B15B
accent
#DB4DCC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342B85

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

Preview Lab → · Contrast checker → · Palette generator →

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