#342D8A#342D8A

#342D8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.149 H 279.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#342D8A
RGBrgb(52, 45, 138)
HSLhsl(245, 51%, 36%)
HSVhsv(245, 67%, 54%)
CMYKcmyk(62.3%, 67.4%, 0%, 45.9%)
CIE-LABlab(25.08, 31.92, -50.87)
CIE-LCHlch(25.08, 60.06, 302.11°)
OKLaboklab(36.75% 0.0246 -0.1465)
OKLCHoklch(36.75% 0.149 279.5)
XYZxyz(6.9405, 4.4413, 24.5313)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D8A #838A2D
analogous
#2D548A #342D8A #622D8A
triadic
#342D8A #8A342D #2D8A34
tetradic
#342D8A #8A2D54 #838A2D #2D8A62
square
#342D8A #8A2D54 #838A2D #2D8A62
split-complementary
#342D8A #8A622D #548A2D
monochromatic
#110F2E #231E5C #342D8A #453CB8 #6D65CD

Accessibility & contrast

On white

11.12
#342D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D8A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D8A#FFFFFF#000000##FFFFFF
##342D8A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342d8a;
/* rgb */ color: rgb(52, 45, 138);
/* oklch */ color: oklch(36.8% 0.149 279.5);
Tailwind
colors: {
  custom: {
    50: '#7666ad',
    500: '#342d8a',
    950: '#000000',
  },
}
SCSS
$custom: #342d8a;
$custom-light: #7666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342d8a",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 244.516,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36753,
    "c": 0.14857,
    "h": 279.5
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#342D8A
secondary
#ADB360
accent
#DA4DD0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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