#342C74#342C74

#342C74 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.6% C 0.119 H 283.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#342C74
RGBrgb(52, 44, 116)
HSLhsl(247, 45%, 31%)
HSVhsv(247, 62%, 45%)
CMYKcmyk(55.2%, 62.1%, 0%, 54.5%)
CIE-LABlab(22.97, 25.04, -40.42)
CIE-LCHlch(22.97, 47.55, 301.78°)
OKLaboklab(34.63% 0.0274 -0.1158)
OKLCHoklch(34.63% 0.119 283.3)
XYZxyz(5.4683, 3.7921, 16.9634)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C74 #6C742C
analogous
#2C4874 #342C74 #582C74
triadic
#342C74 #74342C #2C7434
tetradic
#342C74 #742C48 #6C742C #2C7458
square
#342C74 #742C48 #6C742C #2C7458
split-complementary
#342C74 #74582C #48742C
monochromatic
#0C0A1B #201B48 #342C74 #483DA0 #655AC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342C74#FFFFFF#000000##FFFFFF
##342C741.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)
#003976
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#193D4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342c74;
/* rgb */ color: rgb(52, 44, 116);
/* oklch */ color: oklch(34.6% 0.119 283.3);
Tailwind
colors: {
  custom: {
    50: '#72659d',
    500: '#342c74',
    950: '#000000',
  },
}
SCSS
$custom: #342c74;
$custom-light: #72659d;
$custom-dark: #000000;
JSON
{
  "hex": "#342c74",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 246.667,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.11901,
    "h": 283.3
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#342C74
secondary
#9DA656
accent
#D553C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342C74

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

Preview Lab → · Contrast checker → · Palette generator →

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