#342F7E#342F7E

#342F7E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 280.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#342F7E
RGBrgb(52, 47, 126)
HSLhsl(244, 46%, 34%)
HSVhsv(244, 63%, 49%)
CMYKcmyk(58.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(24.54, 26.50, -44.23)
CIE-LCHlch(24.54, 51.56, 300.93°)
OKLaboklab(36.04% 0.0237 -0.127)
OKLCHoklch(36.04% 0.129 280.6)
XYZxyz(6.1974, 4.2690, 20.2321)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F7E #797E2F
analogous
#2F527E #342F7E #5C2F7E
triadic
#342F7E #7E342F #2F7E34
tetradic
#342F7E #7E2F52 #797E2F #2F7E5C
square
#342F7E #7E2F52 #797E2F #2F7E5C
split-complementary
#342F7E #7E5C2F #527E2F
monochromatic
#0F0E25 #221E51 #342F7E #4640AB #6963C5

Accessibility & contrast

On white

11.33
#342F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F7E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F7E#FFFFFF#000000##FFFFFF
##342F7E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#0C4251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342f7e;
/* rgb */ color: rgb(52, 47, 126);
/* oklch */ color: oklch(36.0% 0.129 280.6);
Tailwind
colors: {
  custom: {
    50: '#7368a4',
    500: '#342f7e',
    950: '#000000',
  },
}
SCSS
$custom: #342f7e;
$custom-light: #7368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342f7e",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 243.797,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3604,
    "c": 0.12918,
    "h": 280.6
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#342F7E
secondary
#A7AC5D
accent
#D552CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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