#342B81#342B81

#342B81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.139 H 281.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#342B81
RGBrgb(52, 43, 129)
HSLhsl(246, 50%, 34%)
HSVhsv(246, 67%, 51%)
CMYKcmyk(59.7%, 66.7%, 0%, 49.4%)
CIE-LABlab(23.81, 30.12, -47.31)
CIE-LCHlch(23.81, 56.08, 302.48°)
OKLaboklab(35.59% 0.0275 -0.1361)
OKLCHoklch(35.59% 0.139 281.4)
XYZxyz(6.2413, 4.0424, 21.2160)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B81 #78812B
analogous
#2B4D81 #342B81 #5F2B81
triadic
#342B81 #81342B #2B8134
tetradic
#342B81 #812B4D #78812B #2B815F
square
#342B81 #812B4D #78812B #2B815F
split-complementary
#342B81 #815F2B #4D812B
monochromatic
#0F0C25 #211C53 #342B81 #473AAF #695DC9

Accessibility & contrast

On white

11.61
#342B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B81
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B81#FFFFFF#000000##FFFFFF
##342B811.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#074152
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342b81;
/* rgb */ color: rgb(52, 43, 129);
/* oklch */ color: oklch(35.6% 0.139 281.4);
Tailwind
colors: {
  custom: {
    50: '#7465a6',
    500: '#342b81',
    950: '#000000',
  },
}
SCSS
$custom: #342b81;
$custom-light: #7465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342b81",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 246.279,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.13881,
    "h": 281.4
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#342B81
secondary
#A6AF59
accent
#DA4ECB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342B81

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

Preview Lab → · Contrast checker → · Palette generator →

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