#342B88#342B88

#342B88 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.148 H 280.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#342B88
RGBrgb(52, 43, 136)
HSLhsl(246, 52%, 35%)
HSVhsv(246, 68%, 53%)
CMYKcmyk(61.8%, 68.4%, 0%, 46.7%)
CIE-LABlab(24.43, 32.50, -50.68)
CIE-LCHlch(24.43, 60.20, 302.67°)
OKLaboklab(36.23% 0.0267 -0.146)
OKLCHoklch(36.23% 0.148 280.4)
XYZxyz(6.7226, 4.2349, 23.7509)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B88 #7F882B
analogous
#2B5188 #342B88 #622B88
triadic
#342B88 #88342B #2B8834
tetradic
#342B88 #882B51 #7F882B #2B8862
square
#342B88 #882B51 #7F882B #2B8862
split-complementary
#342B88 #88622B #51882B
monochromatic
#100E2B #221C5A #342B88 #463AB6 #6B61CD

Accessibility & contrast

On white

11.37
#342B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B88
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B88#FFFFFF#000000##FFFFFF
##342B881.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342b88;
/* rgb */ color: rgb(52, 43, 136);
/* oklch */ color: oklch(36.2% 0.148 280.4);
Tailwind
colors: {
  custom: {
    50: '#7665ac',
    500: '#342b88',
    950: '#000000',
  },
}
SCSS
$custom: #342b88;
$custom-light: #7665ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342b88",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 245.806,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36229,
    "c": 0.14837,
    "h": 280.4
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#342B88
secondary
#AAB35C
accent
#DB4CCE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342B88

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

Preview Lab → · Contrast checker → · Palette generator →

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