#342A7C#342A7C

#342A7C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.133 H 282.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#342A7C
RGBrgb(52, 42, 124)
HSLhsl(247, 49%, 33%)
HSVhsv(247, 66%, 49%)
CMYKcmyk(58.1%, 66.1%, 0%, 51.4%)
CIE-LABlab(23.14, 29.06, -45.25)
CIE-LCHlch(23.14, 53.78, 302.71°)
OKLaboklab(34.96% 0.029 -0.13)
OKLCHoklch(34.96% 0.133 282.6)
XYZxyz(5.8811, 3.8409, 19.4963)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7C #727C2A
analogous
#2A497C #342A7C #5D2A7C
triadic
#342A7C #7C342A #2A7C34
tetradic
#342A7C #7C2A49 #727C2A #2A7C5D
square
#342A7C #7C2A49 #727C2A #2A7C5D
split-complementary
#342A7C #7C5D2A #497C2A
monochromatic
#0E0B21 #211B4E #342A7C #4739AA #6759C7

Accessibility & contrast

On white

11.88
#342A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A7C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A7C#FFFFFF#000000##FFFFFF
##342A7C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#103E4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342a7c;
/* rgb */ color: rgb(52, 42, 124);
/* oklch */ color: oklch(35.0% 0.133 282.6);
Tailwind
colors: {
  custom: {
    50: '#7364a3',
    500: '#342a7c',
    950: '#000000',
  },
}
SCSS
$custom: #342a7c;
$custom-light: #7364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7c",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 247.317,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34961,
    "c": 0.13321,
    "h": 282.6
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#342A7C
secondary
#A2AD55
accent
#D94FC8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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