#342A6E#342A6E

#342A6E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.8% C 0.113 H 285.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#342A6E
RGBrgb(52, 42, 110)
HSLhsl(249, 45%, 30%)
HSVhsv(249, 62%, 43%)
CMYKcmyk(52.7%, 61.8%, 0%, 56.9%)
CIE-LABlab(21.99, 24.33, -38.17)
CIE-LCHlch(21.99, 45.26, 302.52°)
OKLaboklab(33.76% 0.0299 -0.1092)
OKLCHoklch(33.76% 0.113 285.3)
XYZxyz(5.0578, 3.5115, 15.1601)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A6E #646E2A
analogous
#2A426E #342A6E #562A6E
triadic
#342A6E #6E342A #2A6E34
tetradic
#342A6E #6E2A42 #646E2A #2A6E56
square
#342A6E #6E2A42 #646E2A #2A6E56
split-complementary
#342A6E #6E562A #426E2A
monochromatic
#0A0816 #1F1942 #342A6E #493B9A #6455BE

Accessibility & contrast

On white

12.34
#342A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A6E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A6E#FFFFFF#000000##FFFFFF
##342A6E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#1F3A47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342a6e;
/* rgb */ color: rgb(52, 42, 110);
/* oklch */ color: oklch(33.8% 0.113 285.3);
Tailwind
colors: {
  custom: {
    50: '#716498',
    500: '#342a6e',
    950: '#000000',
  },
}
SCSS
$custom: #342a6e;
$custom-light: #716498;
$custom-dark: #000000;
JSON
{
  "hex": "#342a6e",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 248.824,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.11321,
    "h": 285.3
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#342A6E
secondary
#95A054
accent
#D453C1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #342A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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