#342C75#342C75

#342C75 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.120 H 283.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#342C75
RGBrgb(52, 44, 117)
HSLhsl(247, 45%, 32%)
HSVhsv(247, 62%, 46%)
CMYKcmyk(55.6%, 62.4%, 0%, 54.1%)
CIE-LABlab(23.05, 25.38, -40.93)
CIE-LCHlch(23.05, 48.16, 301.80°)
OKLaboklab(34.72% 0.0273 -0.1173)
OKLCHoklch(34.72% 0.12 283.1)
XYZxyz(5.5268, 3.8155, 17.2714)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C75 #6D752C
analogous
#2C4975 #342C75 #592C75
triadic
#342C75 #75342C #2C7534
tetradic
#342C75 #752C49 #6D752C #2C7559
square
#342C75 #752C49 #6D752C #2C7559
split-complementary
#342C75 #75592C #49752C
monochromatic
#0C0B1C #201B49 #342C75 #483DA1 #665AC1

Accessibility & contrast

On white

11.91
#342C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C75
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C75#FFFFFF#000000##FFFFFF
##342C751.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#183D4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342c75;
/* rgb */ color: rgb(52, 44, 117);
/* oklch */ color: oklch(34.7% 0.120 283.1);
Tailwind
colors: {
  custom: {
    50: '#72659d',
    500: '#342c75',
    950: '#000000',
  },
}
SCSS
$custom: #342c75;
$custom-light: #72659d;
$custom-dark: #000000;
JSON
{
  "hex": "#342c75",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 246.575,
    "s": 45.342,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34716,
    "c": 0.12046,
    "h": 283.1
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#342C75
secondary
#9EA756
accent
#D553C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342C75

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

Preview Lab → · Contrast checker → · Palette generator →

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