#342B80#342B80

#342B80 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.137 H 281.6°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#342B80
RGBrgb(52, 43, 128)
HSLhsl(246, 50%, 34%)
HSVhsv(246, 66%, 50%)
CMYKcmyk(59.4%, 66.4%, 0%, 49.8%)
CIE-LABlab(23.72, 29.78, -46.82)
CIE-LCHlch(23.72, 55.49, 302.46°)
OKLaboklab(35.49% 0.0276 -0.1346)
OKLCHoklch(35.49% 0.137 281.6)
XYZxyz(6.1751, 4.0159, 20.8676)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B80 #77802B
analogous
#2B4C80 #342B80 #5E2B80
triadic
#342B80 #80342B #2B8034
tetradic
#342B80 #802B4C #77802B #2B805E
square
#342B80 #802B4C #77802B #2B805E
split-complementary
#342B80 #805E2B #4C802B
monochromatic
#0F0C24 #211C52 #342B80 #473AAE #685DC9

Accessibility & contrast

On white

11.65
#342B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B80
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B80#FFFFFF#000000##FFFFFF
##342B801.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#094051
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342b80;
/* rgb */ color: rgb(52, 43, 128);
/* oklch */ color: oklch(35.5% 0.137 281.6);
Tailwind
colors: {
  custom: {
    50: '#7465a6',
    500: '#342b80',
    950: '#000000',
  },
}
SCSS
$custom: #342b80;
$custom-light: #7465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342b80",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 246.353,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35495,
    "c": 0.13743,
    "h": 281.6
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#342B80
secondary
#A5AE58
accent
#D94FCB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342B80

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

Preview Lab → · Contrast checker → · Palette generator →

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