#342C8D#342C8D

#342C8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.154 H 279.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#342C8D
RGBrgb(52, 44, 141)
HSLhsl(245, 52%, 36%)
HSVhsv(245, 69%, 55%)
CMYKcmyk(63.1%, 68.8%, 0%, 44.7%)
CIE-LABlab(25.12, 33.57, -52.67)
CIE-LCHlch(25.12, 62.46, 302.51°)
OKLaboklab(36.86% 0.0251 -0.1518)
OKLCHoklch(36.86% 0.154 279.4)
XYZxyz(7.1230, 4.4540, 25.6785)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C8D #858D2C
analogous
#2C558D #342C8D #652C8D
triadic
#342C8D #8D342C #2C8D34
tetradic
#342C8D #8D2C55 #858D2C #2C8D65
square
#342C8D #8D2C55 #858D2C #2C8D65
split-complementary
#342C8D #8D652C #558D2C
monochromatic
#120F30 #231D5E #342C8D #453BBC #6D65CF

Accessibility & contrast

On white

11.11
#342C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C8D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C8D#FFFFFF#000000##FFFFFF
##342C8D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342c8d;
/* rgb */ color: rgb(52, 44, 141);
/* oklch */ color: oklch(36.9% 0.154 279.4);
Tailwind
colors: {
  custom: {
    50: '#7666af',
    500: '#342c8d',
    950: '#000000',
  },
}
SCSS
$custom: #342c8d;
$custom-light: #7666af;
$custom-dark: #000000;
JSON
{
  "hex": "#342c8d",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 244.948,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36865,
    "c": 0.15386,
    "h": 279.4
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#342C8D
secondary
#AEB560
accent
#DC4CD0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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