#342A8A#342A8A

#342A8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.152 H 280.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#342A8A
RGBrgb(52, 42, 138)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 70%, 54%)
CMYKcmyk(62.3%, 69.6%, 0%, 45.9%)
CIE-LABlab(24.39, 33.79, -52.00)
CIE-LCHlch(24.39, 62.02, 303.01°)
OKLaboklab(36.25% 0.0273 -0.1498)
OKLCHoklch(36.25% 0.152 280.3)
XYZxyz(6.8301, 4.2205, 24.4945)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A8A #808A2A
analogous
#2A508A #342A8A #642A8A
triadic
#342A8A #8A342A #2A8A34
tetradic
#342A8A #8A2A50 #808A2A #2A8A64
square
#342A8A #8A2A50 #808A2A #2A8A64
split-complementary
#342A8A #8A642A #508A2A
monochromatic
#110D2C #221C5B #342A8A #4638B9 #6B60CF

Accessibility & contrast

On white

11.39
#342A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A8A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A8A#FFFFFF#000000##FFFFFF
##342A8A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342a8a;
/* rgb */ color: rgb(52, 42, 138);
/* oklch */ color: oklch(36.3% 0.152 280.3);
Tailwind
colors: {
  custom: {
    50: '#7664ad',
    500: '#342a8a',
    950: '#000000',
  },
}
SCSS
$custom: #342a8a;
$custom-light: #7664ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342a8a",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 246.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36253,
    "c": 0.1523,
    "h": 280.3
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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