#342F88#342F88

#342F88 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.143 H 279.2°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#342F88
RGBrgb(52, 47, 136)
HSLhsl(243, 49%, 36%)
HSVhsv(243, 65%, 53%)
CMYKcmyk(61.8%, 65.4%, 0%, 46.7%)
CIE-LABlab(25.38, 29.96, -49.13)
CIE-LCHlch(25.38, 57.54, 301.37°)
OKLaboklab(36.92% 0.023 -0.1414)
OKLCHoklch(36.92% 0.143 279.2)
XYZxyz(6.8752, 4.5402, 23.8018)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F88 #83882F
analogous
#2F5688 #342F88 #602F88
triadic
#342F88 #88342F #2F8834
tetradic
#342F88 #882F56 #83882F #2F8860
square
#342F88 #882F56 #83882F #2F8860
split-complementary
#342F88 #88602F #56882F
monochromatic
#11102D #231F5B #342F88 #453FB5 #6D67CA

Accessibility & contrast

On white

11.01
#342F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F88
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F88#FFFFFF#000000##FFFFFF
##342F881.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342f88;
/* rgb */ color: rgb(52, 47, 136);
/* oklch */ color: oklch(36.9% 0.143 279.2);
Tailwind
colors: {
  custom: {
    50: '#7568ab',
    500: '#342f88',
    950: '#000000',
  },
}
SCSS
$custom: #342f88;
$custom-light: #7568ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342f88",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 243.371,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36919,
    "c": 0.14326,
    "h": 279.2
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#342F88
secondary
#ADB161
accent
#D850D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F88

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

Preview Lab → · Contrast checker → · Palette generator →

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