#342A69#342A69

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

Color values

HEX#342A69
RGBrgb(52, 42, 105)
HSLhsl(250, 43%, 29%)
HSVhsv(250, 60%, 41%)
CMYKcmyk(50.5%, 60%, 0%, 58.8%)
CIE-LABlab(21.60, 22.66, -35.55)
CIE-LCHlch(21.60, 42.16, 302.51°)
OKLaboklab(33.35% 0.03 -0.1015)
OKLCHoklch(33.35% 0.106 286.4)
XYZxyz(4.7932, 3.4057, 13.7667)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A69 #5F692A
analogous
#2A4069 #342A69 #542A69
triadic
#342A69 #69342A #2A6934
tetradic
#342A69 #692A40 #5F692A #2A6954
square
#342A69 #692A40 #5F692A #2A6954
split-complementary
#342A69 #69542A #40692A
monochromatic
#0B0916 #1E193D #342A69 #4A3B95 #6453BA

Accessibility & contrast

On white

12.49
#342A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A69
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A69#FFFFFF#000000##FFFFFF
##342A691.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02356B
Deuteranopia (green-blind)
#013268
Tritanopia (blue-blind)
#223845
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342a69;
/* rgb */ color: rgb(52, 42, 105);
/* oklch */ color: oklch(33.3% 0.106 286.4);
Tailwind
colors: {
  custom: {
    50: '#706494',
    500: '#342a69',
    950: '#000000',
  },
}
SCSS
$custom: #342a69;
$custom-light: #706494;
$custom-dark: #000000;
JSON
{
  "hex": "#342a69",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 105
  },
  "hsl": {
    "h": 249.524,
    "s": 42.857,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.10583,
    "h": 286.4
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#342A69
secondary
#909B54
accent
#D355BF
background
#F7F5F9
surface
#EDEAF1
border
#C8C6CB
text
#08050D
muted
#7B797E

Preview Lab

Preview with #342A69

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

Preview Lab → · Contrast checker → · Palette generator →

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