#342BA3#342BA3

#342BA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.183 H 276.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#342BA3
RGBrgb(52, 43, 163)
HSLhsl(245, 58%, 40%)
HSVhsv(245, 74%, 64%)
CMYKcmyk(68.1%, 73.6%, 0%, 36.1%)
CIE-LABlab(27.02, 41.52, -63.04)
CIE-LCHlch(27.02, 75.48, 303.37°)
OKLaboklab(38.87% 0.0221 -0.1821)
OKLCHoklch(38.87% 0.183 276.9)
XYZxyz(8.8888, 5.1014, 35.1595)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA3 #9AA32B
analogous
#2B5EA3 #342BA3 #702BA3
triadic
#342BA3 #A3342B #2BA334
tetradic
#342BA3 #A32B5E #9AA32B #2BA370
square
#342BA3 #A32B5E #9AA32B #2BA370
split-complementary
#342BA3 #A3702B #5EA32B
monochromatic
#151142 #251E73 #342BA3 #493FCC #776FD9

Accessibility & contrast

On white

10.39
#342BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#342BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BA3
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA3#FFFFFF#000000##FFFFFF
##342BA31.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342ba3;
/* rgb */ color: rgb(52, 43, 163);
/* oklch */ color: oklch(38.9% 0.183 276.9);
Tailwind
colors: {
  custom: {
    50: '#7b66bf',
    500: '#342ba3',
    950: '#000000',
  },
}
SCSS
$custom: #342ba3;
$custom-light: #7b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba3",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 244.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.18345,
    "h": 276.9
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#342BA3
secondary
#BAC06A
accent
#E146D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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