#342C7A#342C7A

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

Color values

HEX#342C7A
RGBrgb(52, 44, 122)
HSLhsl(246, 47%, 33%)
HSVhsv(246, 64%, 48%)
CMYKcmyk(57.4%, 63.9%, 0%, 52.2%)
CIE-LABlab(23.46, 27.09, -43.46)
CIE-LCHlch(23.46, 51.21, 301.94°)
OKLaboklab(35.14% 0.0271 -0.1247)
OKLCHoklch(35.14% 0.128 282.2)
XYZxyz(5.8286, 3.9362, 18.8612)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C7A #727A2C
analogous
#2C4B7A #342C7A #5B2C7A
triadic
#342C7A #7A342C #2C7A34
tetradic
#342C7A #7A2C4B #727A2C #2C7A5B
square
#342C7A #7A2C4B #727A2C #2C7A5B
split-complementary
#342C7A #7A5B2C #4B7A2C
monochromatic
#0E0C20 #211C4D #342C7A #473CA7 #675CC4

Accessibility & contrast

On white

11.75
#342C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C7A
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C7A#FFFFFF#000000##FFFFFF
##342C7A1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#133F4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342c7a;
/* rgb */ color: rgb(52, 44, 122);
/* oklch */ color: oklch(35.1% 0.128 282.2);
Tailwind
colors: {
  custom: {
    50: '#7365a1',
    500: '#342c7a',
    950: '#000000',
  },
}
SCSS
$custom: #342c7a;
$custom-light: #7365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342c7a",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 246.154,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.12764,
    "h": 282.2
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#342C7A
secondary
#A2AA57
accent
#D751C9
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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