#342BAB#342BAB

#342BAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.193 H 276.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#342BAB
RGBrgb(52, 43, 171)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(69.6%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.84, 44.13, -66.52)
CIE-LCHlch(27.84, 79.82, 303.56°)
OKLaboklab(39.7% 0.0205 -0.1923)
OKLCHoklch(39.7% 0.193 276.1)
XYZxyz(9.6283, 5.3972, 39.0545)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BAB #A2AB2B
analogous
#2B62AB #342BAB #742BAB
triadic
#342BAB #AB342B #2BAB34
tetradic
#342BAB #AB2B62 #A2AB2B #2BAB74
square
#342BAB #AB2B62 #A2AB2B #2BAB74
split-complementary
#342BAB #AB742B #62AB2B
monochromatic
#161249 #251F7A #342BAB #4D43D0 #7C74DC

Accessibility & contrast

On white

10.10
#342BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#342BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BAB
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BAB#FFFFFF#000000##FFFFFF
##342BAB1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342bab;
/* rgb */ color: rgb(52, 43, 171);
/* oklch */ color: oklch(39.7% 0.193 276.1);
Tailwind
colors: {
  custom: {
    50: '#7d66c5',
    500: '#342bab',
    950: '#000000',
  },
}
SCSS
$custom: #342bab;
$custom-light: #7d66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342bab",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 244.219,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39696,
    "c": 0.19336,
    "h": 276.1
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#342BAB
secondary
#BEC46E
accent
#E345D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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