#342E7E#342E7E

#342E7E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.131 H 280.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#342E7E
RGBrgb(52, 46, 126)
HSLhsl(245, 47%, 34%)
HSVhsv(245, 63%, 49%)
CMYKcmyk(58.7%, 63.5%, 0%, 50.6%)
CIE-LABlab(24.29, 27.15, -44.64)
CIE-LCHlch(24.29, 52.25, 301.31°)
OKLaboklab(35.86% 0.0247 -0.1282)
OKLCHoklch(35.86% 0.131 280.9)
XYZxyz(6.1579, 4.1900, 20.2189)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E7E #787E2E
analogous
#2E507E #342E7E #5C2E7E
triadic
#342E7E #7E342E #2E7E34
tetradic
#342E7E #7E2E50 #787E2E #2E7E5C
square
#342E7E #7E2E50 #787E2E #2E7E5C
split-complementary
#342E7E #7E5C2E #507E2E
monochromatic
#0F0D24 #211E51 #342E7E #473EAB #6961C5

Accessibility & contrast

On white

11.43
#342E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E7E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E7E#FFFFFF#000000##FFFFFF
##342E7E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342e7e;
/* rgb */ color: rgb(52, 46, 126);
/* oklch */ color: oklch(35.9% 0.131 280.9);
Tailwind
colors: {
  custom: {
    50: '#7367a4',
    500: '#342e7e',
    950: '#000000',
  },
}
SCSS
$custom: #342e7e;
$custom-light: #7367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342e7e",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 244.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.13056,
    "h": 280.9
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#342E7E
secondary
#A6AC5C
accent
#D652CC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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