#342C7D#342C7D

#342C7D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.132 H 281.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#342C7D
RGBrgb(52, 44, 125)
HSLhsl(246, 48%, 33%)
HSVhsv(246, 65%, 49%)
CMYKcmyk(58.4%, 64.8%, 0%, 51%)
CIE-LABlab(23.71, 28.11, -44.95)
CIE-LCHlch(23.71, 53.02, 302.02°)
OKLaboklab(35.41% 0.0269 -0.1291)
OKLCHoklch(35.41% 0.132 281.8)
XYZxyz(6.0174, 4.0117, 19.8553)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C7D #757D2C
analogous
#2C4C7D #342C7D #5C2C7D
triadic
#342C7D #7D342C #2C7D34
tetradic
#342C7D #7D2C4C #757D2C #2C7D5C
square
#342C7D #7D2C4C #757D2C #2C7D5C
split-complementary
#342C7D #7D5C2C #4C7D2C
monochromatic
#0E0C22 #211C50 #342C7D #473CAA #685DC6

Accessibility & contrast

On white

11.65
#342C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C7D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C7D#FFFFFF#000000##FFFFFF
##342C7D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#0E4050
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342c7d;
/* rgb */ color: rgb(52, 44, 125);
/* oklch */ color: oklch(35.4% 0.132 281.8);
Tailwind
colors: {
  custom: {
    50: '#7365a3',
    500: '#342c7d',
    950: '#000000',
  },
}
SCSS
$custom: #342c7d;
$custom-light: #7365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342c7d",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 245.926,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35405,
    "c": 0.13189,
    "h": 281.8
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#342C7D
secondary
#A4AC59
accent
#D850CA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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