#342CB7#342CB7

#342CB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.1% C 0.207 H 274.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#342CB7
RGBrgb(52, 44, 183)
HSLhsl(243, 61%, 45%)
HSVhsv(243, 76%, 72%)
CMYKcmyk(71.6%, 76%, 0%, 28.2%)
CIE-LABlab(29.28, 47.44, -71.30)
CIE-LCHlch(29.28, 85.64, 303.64°)
OKLaboklab(41.09% 0.0174 -0.2062)
OKLCHoklch(41.09% 0.207 274.8)
XYZxyz(10.8613, 5.9493, 45.3665)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB7 #AFB72C
analogous
#2C6AB7 #342CB7 #792CB7
triadic
#342CB7 #B7342C #2CB734
tetradic
#342CB7 #B72C6A #AFB72C #2CB779
square
#342CB7 #B72C6A #AFB72C #2CB779
split-complementary
#342CB7 #B7792C #6AB72C
monochromatic
#181454 #262086 #342CB7 #544CD4 #837EE0

Accessibility & contrast

On white

9.59
#342CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#342CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CB7
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CB7#FFFFFF#000000##FFFFFF
##342CB71.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342cb7;
/* rgb */ color: rgb(52, 44, 183);
/* oklch */ color: oklch(41.1% 0.207 274.8);
Tailwind
colors: {
  custom: {
    50: '#8068ce',
    500: '#342cb7',
    950: '#000000',
  },
}
SCSS
$custom: #342cb7;
$custom-light: #8068ce;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb7",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 243.453,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41091,
    "c": 0.20693,
    "h": 274.8
  },
  "luminance": 0.0595
}

Semantic roles & 50–950 ramp

primary
#342CB7
secondary
#C4C876
accent
#E443DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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