#342A7A#342A7A

#342A7A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.130 H 282.9°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#342A7A
RGBrgb(52, 42, 122)
HSLhsl(248, 49%, 32%)
HSVhsv(248, 66%, 48%)
CMYKcmyk(57.4%, 65.6%, 0%, 52.2%)
CIE-LABlab(22.97, 28.39, -44.26)
CIE-LCHlch(22.97, 52.58, 302.68°)
OKLaboklab(34.78% 0.0292 -0.1271)
OKLCHoklch(34.78% 0.13 282.9)
XYZxyz(5.7559, 3.7908, 18.8370)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7A #707A2A
analogous
#2A487A #342A7A #5C2A7A
triadic
#342A7A #7A342A #2A7A34
tetradic
#342A7A #7A2A48 #707A2A #2A7A5C
square
#342A7A #7A2A48 #707A2A #2A7A5C
split-complementary
#342A7A #7A5C2A #487A2A
monochromatic
#0D0B1F #211A4C #342A7A #473AA8 #6659C6

Accessibility & contrast

On white

11.94
#342A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A7A
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A7A#FFFFFF#000000##FFFFFF
##342A7A1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#133E4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342a7a;
/* rgb */ color: rgb(52, 42, 122);
/* oklch */ color: oklch(34.8% 0.130 282.9);
Tailwind
colors: {
  custom: {
    50: '#7364a1',
    500: '#342a7a',
    950: '#000000',
  },
}
SCSS
$custom: #342a7a;
$custom-light: #7364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7a",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 247.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.13041,
    "h": 282.9
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#342A7A
secondary
#A0AB55
accent
#D84FC7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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