#342C77#342C77

#342C77 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.123 H 282.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#342C77
RGBrgb(52, 44, 119)
HSLhsl(246, 46%, 32%)
HSVhsv(246, 63%, 47%)
CMYKcmyk(56.3%, 63%, 0%, 53.3%)
CIE-LABlab(23.21, 26.06, -41.95)
CIE-LCHlch(23.21, 49.39, 301.85°)
OKLaboklab(34.89% 0.0272 -0.1203)
OKLCHoklch(34.89% 0.123 282.8)
XYZxyz(5.6456, 3.8630, 17.8973)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C77 #6F772C
analogous
#2C4A77 #342C77 #5A2C77
triadic
#342C77 #77342C #2C7734
tetradic
#342C77 #772C4A #6F772C #2C775A
square
#342C77 #772C4A #6F772C #2C775A
split-complementary
#342C77 #775A2C #4A772C
monochromatic
#0D0B1E #201B4A #342C77 #483DA4 #665BC2

Accessibility & contrast

On white

11.85
#342C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C77
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C77#FFFFFF#000000##FFFFFF
##342C771.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#163E4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342c77;
/* rgb */ color: rgb(52, 44, 119);
/* oklch */ color: oklch(34.9% 0.123 282.8);
Tailwind
colors: {
  custom: {
    50: '#72659f',
    500: '#342c77',
    950: '#000000',
  },
}
SCSS
$custom: #342c77;
$custom-light: #72659f;
$custom-dark: #000000;
JSON
{
  "hex": "#342c77",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 246.4,
    "s": 46.012,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34885,
    "c": 0.12335,
    "h": 282.8
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#342C77
secondary
#A0A856
accent
#D652C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342C77

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

Preview Lab → · Contrast checker → · Palette generator →

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