#342E7D#342E7D

#342E7D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.129 H 281.1°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#342E7D
RGBrgb(52, 46, 125)
HSLhsl(245, 46%, 34%)
HSVhsv(245, 63%, 49%)
CMYKcmyk(58.4%, 63.2%, 0%, 51%)
CIE-LABlab(24.21, 26.81, -44.14)
CIE-LCHlch(24.21, 51.64, 301.27°)
OKLaboklab(35.77% 0.0248 -0.1267)
OKLCHoklch(35.77% 0.129 281.1)
XYZxyz(6.0937, 4.1643, 19.8808)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E7D #777D2E
analogous
#2E4F7D #342E7D #5B2E7D
triadic
#342E7D #7D342E #2E7D34
tetradic
#342E7D #7D2E4F #777D2E #2E7D5B
square
#342E7D #7D2E4F #777D2E #2E7D5B
split-complementary
#342E7D #7D5B2E #4F7D2E
monochromatic
#0F0D24 #211E50 #342E7D #473EAA #6861C5

Accessibility & contrast

On white

11.46
#342E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E7D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E7D#FFFFFF#000000##FFFFFF
##342E7D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#0E4151
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342e7d;
/* rgb */ color: rgb(52, 46, 125);
/* oklch */ color: oklch(35.8% 0.129 281.1);
Tailwind
colors: {
  custom: {
    50: '#7367a3',
    500: '#342e7d',
    950: '#000000',
  },
}
SCSS
$custom: #342e7d;
$custom-light: #7367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342e7d",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 244.557,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.12914,
    "h": 281.1
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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