#342BA7#342BA7

#342BA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.188 H 276.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#342BA7
RGBrgb(52, 43, 167)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 74%, 65%)
CMYKcmyk(68.9%, 74.3%, 0%, 34.5%)
CIE-LABlab(27.43, 42.82, -64.79)
CIE-LCHlch(27.43, 77.66, 303.46°)
OKLaboklab(39.28% 0.0213 -0.1872)
OKLCHoklch(39.28% 0.188 276.5)
XYZxyz(9.2528, 5.2470, 37.0769)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA7 #9EA72B
analogous
#2B60A7 #342BA7 #722BA7
triadic
#342BA7 #A7342B #2BA734
tetradic
#342BA7 #A72B60 #9EA72B #2BA772
square
#342BA7 #A72B60 #9EA72B #2BA772
split-complementary
#342BA7 #A7722B #60A72B
monochromatic
#161246 #251E76 #342BA7 #4B41CE #7972DB

Accessibility & contrast

On white

10.25
#342BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#342BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BA7
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA7#FFFFFF#000000##FFFFFF
##342BA71.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ba7;
/* rgb */ color: rgb(52, 43, 167);
/* oklch */ color: oklch(39.3% 0.188 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c66c2',
    500: '#342ba7',
    950: '#000000',
  },
}
SCSS
$custom: #342ba7;
$custom-light: #7c66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba7",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 244.355,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39282,
    "c": 0.18843,
    "h": 276.5
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#342BA7
secondary
#BCC26C
accent
#E246D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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