#342A68#342A68

#342A68 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.104 H 286.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#342A68
RGBrgb(52, 42, 104)
HSLhsl(250, 42%, 29%)
HSVhsv(250, 60%, 41%)
CMYKcmyk(50%, 59.6%, 0%, 59.2%)
CIE-LABlab(21.53, 22.32, -35.02)
CIE-LCHlch(21.53, 41.53, 302.51°)
OKLaboklab(33.27% 0.0299 -0.0999)
OKLCHoklch(33.27% 0.104 286.7)
XYZxyz(4.7421, 3.3853, 13.4976)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A68 #5E682A
analogous
#2A3F68 #342A68 #532A68
triadic
#342A68 #68342A #2A6834
tetradic
#342A68 #682A3F #5E682A #2A6853
square
#342A68 #682A3F #5E682A #2A6853
split-complementary
#342A68 #68532A #3F682A
monochromatic
#0B0916 #1E183C #342A68 #4A3C94 #6353B9

Accessibility & contrast

On white

12.52
#342A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#342A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A68
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A68#FFFFFF#000000##FFFFFF
##342A681.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04356A
Deuteranopia (green-blind)
#033267
Tritanopia (blue-blind)
#233844
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342a68;
/* rgb */ color: rgb(52, 42, 104);
/* oklch */ color: oklch(33.3% 0.104 286.7);
Tailwind
colors: {
  custom: {
    50: '#706494',
    500: '#342a68',
    950: '#000000',
  },
}
SCSS
$custom: #342a68;
$custom-light: #706494;
$custom-dark: #000000;
JSON
{
  "hex": "#342a68",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 104
  },
  "hsl": {
    "h": 249.677,
    "s": 42.466,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.10434,
    "h": 286.7
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#342A68
secondary
#8F9A54
accent
#D256BE
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#08050D
muted
#7B797E

Preview Lab

Preview with #342A68

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

Preview Lab → · Contrast checker → · Palette generator →

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