#342CA9#342CA9

#342CA9 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.190 H 276.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#342CA9
RGBrgb(52, 44, 169)
HSLhsl(244, 59%, 42%)
HSVhsv(244, 74%, 66%)
CMYKcmyk(69.2%, 74%, 0%, 33.7%)
CIE-LABlab(27.83, 42.91, -65.33)
CIE-LCHlch(27.83, 78.16, 303.30°)
OKLaboklab(39.63% 0.0203 -0.1888)
OKLCHoklch(39.63% 0.19 276.1)
XYZxyz(9.4759, 5.3951, 38.0704)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA9 #A1A92C
analogous
#2C63A9 #342CA9 #732CA9
triadic
#342CA9 #A9342C #2CA934
tetradic
#342CA9 #A92C63 #A1A92C #2CA973
square
#342CA9 #A92C63 #A1A92C #2CA973
split-complementary
#342CA9 #A9732C #63A92C
monochromatic
#161348 #251F78 #342CA9 #4D44CE #7B74DB

Accessibility & contrast

On white

10.10
#342CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#342CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA9
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA9#FFFFFF#000000##FFFFFF
##342CA91.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342ca9;
/* rgb */ color: rgb(52, 44, 169);
/* oklch */ color: oklch(39.6% 0.190 276.1);
Tailwind
colors: {
  custom: {
    50: '#7c67c4',
    500: '#342ca9',
    950: '#000000',
  },
}
SCSS
$custom: #342ca9;
$custom-light: #7c67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca9",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 243.84,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39631,
    "c": 0.18988,
    "h": 276.1
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#342CA9
secondary
#BDC36E
accent
#E246D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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