#342A88#342A88

#342A88 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.150 H 280.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#342A88
RGBrgb(52, 42, 136)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 69%, 53%)
CMYKcmyk(61.8%, 69.1%, 0%, 46.7%)
CIE-LABlab(24.20, 33.12, -51.06)
CIE-LCHlch(24.20, 60.86, 302.97°)
OKLaboklab(36.06% 0.0275 -0.1471)
OKLCHoklch(36.06% 0.15 280.6)
XYZxyz(6.6867, 4.1631, 23.7390)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A88 #7E882A
analogous
#2A4F88 #342A88 #632A88
triadic
#342A88 #88342A #2A8834
tetradic
#342A88 #882A4F #7E882A #2A8863
square
#342A88 #882A4F #7E882A #2A8863
split-complementary
#342A88 #88632A #4F882A
monochromatic
#100D2A #221C59 #342A88 #4638B7 #6B5FCE

Accessibility & contrast

On white

11.46
#342A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A88
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A88#FFFFFF#000000##FFFFFF
##342A881.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342a88;
/* rgb */ color: rgb(52, 42, 136);
/* oklch */ color: oklch(36.1% 0.150 280.6);
Tailwind
colors: {
  custom: {
    50: '#7664ac',
    500: '#342a88',
    950: '#000000',
  },
}
SCSS
$custom: #342a88;
$custom-light: #7664ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342a88",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 246.383,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36063,
    "c": 0.14962,
    "h": 280.6
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#342A88
secondary
#AAB35B
accent
#DC4CCD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342A88

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

Preview Lab → · Contrast checker → · Palette generator →

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