#342A67#342A67

#342A67 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.103 H 286.9°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#342A67
RGBrgb(52, 42, 103)
HSLhsl(250, 42%, 28%)
HSVhsv(250, 59%, 40%)
CMYKcmyk(49.5%, 59.2%, 0%, 59.6%)
CIE-LABlab(21.45, 21.99, -34.49)
CIE-LCHlch(21.45, 40.91, 302.52°)
OKLaboklab(33.19% 0.0299 -0.0984)
OKLCHoklch(33.19% 0.103 286.9)
XYZxyz(4.6916, 3.3651, 13.2317)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A67 #5D672A
analogous
#2A3E67 #342A67 #522A67
triadic
#342A67 #67342A #2A6734
tetradic
#342A67 #672A3E #5D672A #2A6752
square
#342A67 #672A3E #5D672A #2A6752
split-complementary
#342A67 #67522A #3E672A
monochromatic
#0B0916 #1E183C #342A67 #4A3C92 #6353B9

Accessibility & contrast

On white

12.55
#342A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#342A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A67
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A67#FFFFFF#000000##FFFFFF
##342A671.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063569
Deuteranopia (green-blind)
#053266
Tritanopia (blue-blind)
#233844
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342a67;
/* rgb */ color: rgb(52, 42, 103);
/* oklch */ color: oklch(33.2% 0.103 286.9);
Tailwind
colors: {
  custom: {
    50: '#706493',
    500: '#342a67',
    950: '#000000',
  },
}
SCSS
$custom: #342a67;
$custom-light: #706493;
$custom-dark: #000000;
JSON
{
  "hex": "#342a67",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 249.836,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.10284,
    "h": 286.9
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342A67

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

Preview Lab → · Contrast checker → · Palette generator →

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