#342BB7#342BB7

#342BB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.208 H 274.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#342BB7
RGBrgb(52, 43, 183)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 77%, 72%)
CMYKcmyk(71.6%, 76.5%, 0%, 28.2%)
CIE-LABlab(29.10, 47.98, -71.61)
CIE-LCHlch(29.10, 86.20, 303.82°)
OKLaboklab(40.96% 0.0179 -0.2071)
OKLCHoklch(40.96% 0.208 274.9)
XYZxyz(10.8245, 5.8757, 45.3542)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB7 #AEB72B
analogous
#2B68B7 #342BB7 #7A2BB7
triadic
#342BB7 #B7342B #2BB734
tetradic
#342BB7 #B72B68 #AEB72B #2BB77A
square
#342BB7 #B72B68 #AEB72B #2BB77A
split-complementary
#342BB7 #B77A2B #68B72B
monochromatic
#181454 #261F85 #342BB7 #534BD5 #837CE0

Accessibility & contrast

On white

9.65
#342BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#342BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BB7
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB7#FFFFFF#000000##FFFFFF
##342BB71.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342bb7;
/* rgb */ color: rgb(52, 43, 183);
/* oklch */ color: oklch(41.0% 0.208 274.9);
Tailwind
colors: {
  custom: {
    50: '#8067ce',
    500: '#342bb7',
    950: '#000000',
  },
}
SCSS
$custom: #342bb7;
$custom-light: #8067ce;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb7",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 243.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.20786,
    "h": 274.9
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#342BB7
secondary
#C3C975
accent
#E543DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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