#342A7D#342A7D

#342A7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.135 H 282.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#342A7D
RGBrgb(52, 42, 125)
HSLhsl(247, 50%, 33%)
HSVhsv(247, 66%, 49%)
CMYKcmyk(58.4%, 66.4%, 0%, 51%)
CIE-LABlab(23.22, 29.40, -45.74)
CIE-LCHlch(23.22, 54.37, 302.73°)
OKLaboklab(35.05% 0.0289 -0.1315)
OKLCHoklch(35.05% 0.135 282.4)
XYZxyz(5.9447, 3.8663, 19.8311)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7D #737D2A
analogous
#2A497D #342A7D #5D2A7D
triadic
#342A7D #7D342A #2A7D34
tetradic
#342A7D #7D2A49 #737D2A #2A7D5D
square
#342A7D #7D2A49 #737D2A #2A7D5D
split-complementary
#342A7D #7D5D2A #497D2A
monochromatic
#0E0B21 #211B4F #342A7D #4739AB #675AC8

Accessibility & contrast

On white

11.84
#342A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A7D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A7D#FFFFFF#000000##FFFFFF
##342A7D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#0F3F4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342a7d;
/* rgb */ color: rgb(52, 42, 125);
/* oklch */ color: oklch(35.1% 0.135 282.4);
Tailwind
colors: {
  custom: {
    50: '#7464a3',
    500: '#342a7d',
    950: '#000000',
  },
}
SCSS
$custom: #342a7d;
$custom-light: #7464a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7d",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 247.229,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35051,
    "c": 0.1346,
    "h": 282.4
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#342A7D
secondary
#A3AD56
accent
#D94FC9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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