#342A8B#342A8B

#342A8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.154 H 280.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#342A8B
RGBrgb(52, 42, 139)
HSLhsl(246, 54%, 35%)
HSVhsv(246, 70%, 55%)
CMYKcmyk(62.6%, 69.8%, 0%, 45.5%)
CIE-LABlab(24.48, 34.13, -52.47)
CIE-LCHlch(24.48, 62.60, 303.04°)
OKLaboklab(36.35% 0.0271 -0.1512)
OKLCHoklch(36.35% 0.154 280.2)
XYZxyz(6.9029, 4.2496, 24.8776)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A8B #818B2A
analogous
#2A508B #342A8B #652A8B
triadic
#342A8B #8B342A #2A8B34
tetradic
#342A8B #8B2A50 #818B2A #2A8B65
square
#342A8B #8B2A50 #818B2A #2A8B65
split-complementary
#342A8B #8B652A #508B2A
monochromatic
#110E2D #221C5C #342A8B #4638BA #6C60CF

Accessibility & contrast

On white

11.35
#342A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A8B
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A8B#FFFFFF#000000##FFFFFF
##342A8B1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342a8b;
/* rgb */ color: rgb(52, 42, 139);
/* oklch */ color: oklch(36.3% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#7664ae',
    500: '#342a8b',
    950: '#000000',
  },
}
SCSS
$custom: #342a8b;
$custom-light: #7664ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342a8b",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 246.186,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36348,
    "c": 0.15363,
    "h": 280.2
  },
  "luminance": 0.0425
}

Semantic roles & 50–950 ramp

primary
#342A8B
secondary
#ACB55C
accent
#DD4BCE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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