#342C8E#342C8E

#342C8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.155 H 279.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#342C8E
RGBrgb(52, 44, 142)
HSLhsl(245, 53%, 36%)
HSVhsv(245, 69%, 56%)
CMYKcmyk(63.4%, 69%, 0%, 44.3%)
CIE-LABlab(25.21, 33.91, -53.14)
CIE-LCHlch(25.21, 63.04, 302.54°)
OKLaboklab(36.96% 0.025 -0.1532)
OKLCHoklch(36.96% 0.155 279.3)
XYZxyz(7.1978, 4.4839, 26.0721)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C8E #868E2C
analogous
#2C558E #342C8E #652C8E
triadic
#342C8E #8E342C #2C8E34
tetradic
#342C8E #8E2C55 #868E2C #2C8E65
square
#342C8E #8E2C55 #868E2C #2C8E65
split-complementary
#342C8E #8E652C #558E2C
monochromatic
#120F31 #231E5F #342C8E #453ABD #6E65CF

Accessibility & contrast

On white

11.07
#342C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C8E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C8E#FFFFFF#000000##FFFFFF
##342C8E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342c8e;
/* rgb */ color: rgb(52, 44, 142);
/* oklch */ color: oklch(37.0% 0.155 279.3);
Tailwind
colors: {
  custom: {
    50: '#7766b0',
    500: '#342c8e',
    950: '#000000',
  },
}
SCSS
$custom: #342c8e;
$custom-light: #7766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#342c8e",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 244.898,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3696,
    "c": 0.15519,
    "h": 279.3
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#342C8E
secondary
#AFB660
accent
#DC4CD0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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