#342ED7#342ED7

#342ED7 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.8% C 0.242 H 272.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#342ED7
RGBrgb(52, 46, 215)
HSLhsl(242, 68%, 51%)
HSVhsv(242, 79%, 84%)
CMYKcmyk(75.8%, 78.6%, 0%, 15.7%)
CIE-LABlab(33.11, 56.43, -83.70)
CIE-LCHlch(33.11, 100.94, 303.99°)
OKLaboklab(44.79% 0.0097 -0.2422)
OKLCHoklch(44.79% 0.242 272.3)
XYZxyz(14.6548, 7.5888, 64.9692)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342ED7 #D1D72E
analogous
#2E7CD7 #342ED7 #882ED7
triadic
#342ED7 #D7342E #2ED734
tetradic
#342ED7 #D72E7C #D1D72E #2ED788
square
#342ED7 #D72E7C #D1D72E #2ED788
split-complementary
#342ED7 #D7882E #7CD72E
monochromatic
#1A1674 #2520A8 #342ED7 #6661E1 #9895EB

Accessibility & contrast

On white

8.34
#342ED7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#342ED7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342ED7
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342ED7#FFFFFF#000000##FFFFFF
##342ED71.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056DC
Deuteranopia (green-blind)
#0045D4
Tritanopia (blue-blind)
#006283
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #342ed7;
/* rgb */ color: rgb(52, 46, 215);
/* oklch */ color: oklch(44.8% 0.242 272.3);
Tailwind
colors: {
  custom: {
    50: '#876be5',
    500: '#342ed7',
    950: '#000000',
  },
}
SCSS
$custom: #342ed7;
$custom-light: #876be5;
$custom-dark: #000000;
JSON
{
  "hex": "#342ed7",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 242.13,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.44794,
    "c": 0.24243,
    "h": 272.3
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#342ED7
secondary
#D3D68B
accent
#EB3DE5
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #342ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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