#342DC5#342DC5

#342DC5 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.7% C 0.223 H 273.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#342DC5
RGBrgb(52, 45, 197)
HSLhsl(243, 63%, 47%)
HSVhsv(243, 77%, 77%)
CMYKcmyk(73.6%, 77.2%, 0%, 22.7%)
CIE-LABlab(30.97, 51.35, -76.78)
CIE-LCHlch(30.97, 92.37, 303.77°)
OKLaboklab(42.72% 0.014 -0.2221)
OKLCHoklch(42.72% 0.223 273.6)
XYZxyz(12.4292, 6.6368, 53.4385)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DC5 #BEC52D
analogous
#2D72C5 #342DC5 #802DC5
triadic
#342DC5 #C5342D #2DC534
tetradic
#342DC5 #C52D72 #BEC52D #2DC580
square
#342DC5 #C52D72 #BEC52D #2DC580
split-complementary
#342DC5 #C5802D #72C52D
monochromatic
#1A1661 #272293 #342DC5 #5D57D9 #8D88E4

Accessibility & contrast

On white

9.02
#342DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#342DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DC5
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DC5#FFFFFF#000000##FFFFFF
##342DC51.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C9
Deuteranopia (green-blind)
#0042C2
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #342dc5;
/* rgb */ color: rgb(52, 45, 197);
/* oklch */ color: oklch(42.7% 0.223 273.6);
Tailwind
colors: {
  custom: {
    50: '#8369d8',
    500: '#342dc5',
    950: '#000000',
  },
}
SCSS
$custom: #342dc5;
$custom-light: #8369d8;
$custom-dark: #000000;
JSON
{
  "hex": "#342dc5",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 242.763,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42715,
    "c": 0.22259,
    "h": 273.6
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#342DC5
secondary
#CACE80
accent
#E642DE
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #342DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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