#342A7B#342A7B

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

Color values

HEX#342A7B
RGBrgb(52, 42, 123)
HSLhsl(247, 49%, 32%)
HSVhsv(247, 66%, 48%)
CMYKcmyk(57.7%, 65.9%, 0%, 51.8%)
CIE-LABlab(23.05, 28.72, -44.75)
CIE-LCHlch(23.05, 53.18, 302.69°)
OKLaboklab(34.87% 0.0291 -0.1286)
OKLCHoklch(34.87% 0.132 282.7)
XYZxyz(5.8182, 3.8157, 19.1650)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7B #717B2A
analogous
#2A497B #342A7B #5C2A7B
triadic
#342A7B #7B342A #2A7B34
tetradic
#342A7B #7B2A49 #717B2A #2A7B5C
square
#342A7B #7B2A49 #717B2A #2A7B5C
split-complementary
#342A7B #7B5C2A #497B2A
monochromatic
#0D0B20 #211A4D #342A7B #473AA9 #6759C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342A7B#FFFFFF#000000##FFFFFF
##342A7B1.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)
#003A7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#123E4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342a7b;
/* rgb */ color: rgb(52, 42, 123);
/* oklch */ color: oklch(34.9% 0.132 282.7);
Tailwind
colors: {
  custom: {
    50: '#7364a2',
    500: '#342a7b',
    950: '#000000',
  },
}
SCSS
$custom: #342a7b;
$custom-light: #7364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7b",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 247.407,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34872,
    "c": 0.13181,
    "h": 282.7
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#342A7B
secondary
#A1AC55
accent
#D94FC8
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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