#342699#342699

#342699 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.176 H 278.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#342699
RGBrgb(52, 38, 153)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 60%)
CMYKcmyk(66%, 75.2%, 0%, 40%)
CIE-LABlab(25.00, 41.09, -60.27)
CIE-LCHlch(25.00, 72.94, 304.28°)
OKLaboklab(37.13% 0.0274 -0.174)
OKLCHoklch(37.13% 0.176 278.9)
XYZxyz(7.8572, 4.4156, 30.5690)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342699 #8B9926
analogous
#265299 #342699 #6D2699
triadic
#342699 #993426 #269934
tetradic
#342699 #992652 #8B9926 #26996D
square
#342699 #992652 #8B9926 #26996D
split-complementary
#342699 #996D26 #529926
monochromatic
#130E37 #231A68 #342699 #4532CA #7062D8

Accessibility & contrast

On white

11.15
#342699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#342699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342699
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342699#FFFFFF#000000##FFFFFF
##3426991.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342699;
/* rgb */ color: rgb(52, 38, 153);
/* oklch */ color: oklch(37.1% 0.176 278.9);
Tailwind
colors: {
  custom: {
    50: '#7a63b8',
    500: '#342699',
    950: '#000000',
  },
}
SCSS
$custom: #342699;
$custom-light: #7a63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342699",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 247.304,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37134,
    "c": 0.17614,
    "h": 278.9
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#342699
secondary
#B2BD5E
accent
#E344D0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342699

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

Preview Lab → · Contrast checker → · Palette generator →

#342699 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva