#342C88#342C88

#342C88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.147 H 280.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#342C88
RGBrgb(52, 44, 136)
HSLhsl(245, 51%, 35%)
HSVhsv(245, 68%, 53%)
CMYKcmyk(61.8%, 67.6%, 0%, 46.7%)
CIE-LABlab(24.67, 31.87, -50.30)
CIE-LCHlch(24.67, 59.55, 302.36°)
OKLaboklab(36.4% 0.0258 -0.1448)
OKLCHoklch(36.4% 0.147 280.1)
XYZxyz(6.7594, 4.3085, 23.7632)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C88 #80882C
analogous
#2C5288 #342C88 #622C88
triadic
#342C88 #88342C #2C8834
tetradic
#342C88 #882C52 #80882C #2C8862
square
#342C88 #882C52 #80882C #2C8862
split-complementary
#342C88 #88622C #52882C
monochromatic
#110E2C #221D5A #342C88 #463BB6 #6B62CC

Accessibility & contrast

On white

11.28
#342C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C88
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C88#FFFFFF#000000##FFFFFF
##342C881.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342c88;
/* rgb */ color: rgb(52, 44, 136);
/* oklch */ color: oklch(36.4% 0.147 280.1);
Tailwind
colors: {
  custom: {
    50: '#7566ac',
    500: '#342c88',
    950: '#000000',
  },
}
SCSS
$custom: #342c88;
$custom-light: #7566ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342c88",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 245.217,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36398,
    "c": 0.14711,
    "h": 280.1
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#342C88
secondary
#ABB35D
accent
#DB4DCE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342C88

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

Preview Lab → · Contrast checker → · Palette generator →

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