#342DBD#342DBD

#342DBD is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.213 H 274.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#342DBD
RGBrgb(52, 45, 189)
HSLhsl(243, 62%, 46%)
HSVhsv(243, 76%, 74%)
CMYKcmyk(72.5%, 76.2%, 0%, 25.9%)
CIE-LABlab(30.11, 48.82, -73.50)
CIE-LCHlch(30.11, 88.23, 303.60°)
OKLaboklab(41.86% 0.0157 -0.2126)
OKLCHoklch(41.86% 0.213 274.2)
XYZxyz(11.5368, 6.2798, 48.7384)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DBD #B6BD2D
analogous
#2D6EBD #342DBD #7C2DBD
triadic
#342DBD #BD342D #2DBD34
tetradic
#342DBD #BD2D6E #B6BD2D #2DBD7C
square
#342DBD #BD2D6E #B6BD2D #2DBD7C
split-complementary
#342DBD #BD7C2D #6EBD2D
monochromatic
#19155A #26218C #342DBD #5852D6 #8883E1

Accessibility & contrast

On white

9.31
#342DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#342DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DBD
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DBD#FFFFFF#000000##FFFFFF
##342DBD1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342dbd;
/* rgb */ color: rgb(52, 45, 189);
/* oklch */ color: oklch(41.9% 0.213 274.2);
Tailwind
colors: {
  custom: {
    50: '#8169d2',
    500: '#342dbd',
    950: '#000000',
  },
}
SCSS
$custom: #342dbd;
$custom-light: #8169d2;
$custom-dark: #000000;
JSON
{
  "hex": "#342dbd",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 242.917,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41859,
    "c": 0.21317,
    "h": 274.2
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#342DBD
secondary
#C7CB7B
accent
#E543DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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