#342E88#342E88

#342E88 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.145 H 279.5°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#342E88
RGBrgb(52, 46, 136)
HSLhsl(244, 49%, 36%)
HSVhsv(244, 66%, 53%)
CMYKcmyk(61.8%, 66.2%, 0%, 46.7%)
CIE-LABlab(25.14, 30.60, -49.52)
CIE-LCHlch(25.14, 58.22, 301.71°)
OKLaboklab(36.74% 0.0239 -0.1426)
OKLCHoklch(36.74% 0.145 279.5)
XYZxyz(6.8357, 4.4611, 23.7886)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E88 #82882E
analogous
#2E5588 #342E88 #612E88
triadic
#342E88 #88342E #2E8834
tetradic
#342E88 #882E55 #82882E #2E8861
square
#342E88 #882E55 #82882E #2E8861
split-complementary
#342E88 #88612E #55882E
monochromatic
#110F2D #231F5A #342E88 #453DB6 #6C65CB

Accessibility & contrast

On white

11.10
#342E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E88
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E88#FFFFFF#000000##FFFFFF
##342E881.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342e88;
/* rgb */ color: rgb(52, 46, 136);
/* oklch */ color: oklch(36.7% 0.145 279.5);
Tailwind
colors: {
  custom: {
    50: '#7567ab',
    500: '#342e88',
    950: '#000000',
  },
}
SCSS
$custom: #342e88;
$custom-light: #7567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342e88",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 244,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36743,
    "c": 0.14455,
    "h": 279.5
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#342E88
secondary
#ACB260
accent
#D94FD0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E88

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

Preview Lab → · Contrast checker → · Palette generator →

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