#342A87#342A87

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

Color values

HEX#342A87
RGBrgb(52, 42, 135)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 69%, 53%)
CMYKcmyk(61.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(24.11, 32.78, -50.58)
CIE-LCHlch(24.11, 60.27, 302.95°)
OKLaboklab(35.97% 0.0277 -0.1457)
OKLCHoklch(35.97% 0.148 280.8)
XYZxyz(6.6159, 4.1348, 23.3664)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A87 #7D872A
analogous
#2A4E87 #342A87 #632A87
triadic
#342A87 #87342A #2A8734
tetradic
#342A87 #872A4E #7D872A #2A8763
square
#342A87 #872A4E #7D872A #2A8763
split-complementary
#342A87 #87632A #4E872A
monochromatic
#100D2A #221B58 #342A87 #4639B6 #6A5ECD

Accessibility & contrast

On white

11.49
#342A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A87
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A87#FFFFFF#000000##FFFFFF
##342A871.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342a87;
/* rgb */ color: rgb(52, 42, 135);
/* oklch */ color: oklch(36.0% 0.148 280.8);
Tailwind
colors: {
  custom: {
    50: '#7564ab',
    500: '#342a87',
    950: '#000000',
  },
}
SCSS
$custom: #342a87;
$custom-light: #7564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342a87",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 246.452,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.14828,
    "h": 280.8
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#342A87
secondary
#A9B35A
accent
#DC4CCC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342A87

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

Preview Lab → · Contrast checker → · Palette generator →

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