#342CA3#342CA3

#342CA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.182 H 276.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#342CA3
RGBrgb(52, 44, 163)
HSLhsl(244, 57%, 41%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.1%, 73%, 0%, 36.1%)
CIE-LABlab(27.23, 40.94, -62.70)
CIE-LCHlch(27.23, 74.88, 303.14°)
OKLaboklab(39.02% 0.0215 -0.1811)
OKLCHoklch(39.02% 0.182 276.8)
XYZxyz(8.9256, 5.1750, 35.1717)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA3 #9BA32C
analogous
#2C5FA3 #342CA3 #702CA3
triadic
#342CA3 #A3342C #2CA334
tetradic
#342CA3 #A32C5F #9BA32C #2CA370
square
#342CA3 #A32C5F #9BA32C #2CA370
split-complementary
#342CA3 #A3702C #5FA32C
monochromatic
#151243 #251F73 #342CA3 #4A41CC #7871D9

Accessibility & contrast

On white

10.32
#342CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA3
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA3#FFFFFF#000000##FFFFFF
##342CA31.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342ca3;
/* rgb */ color: rgb(52, 44, 163);
/* oklch */ color: oklch(39.0% 0.182 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b67bf',
    500: '#342ca3',
    950: '#000000',
  },
}
SCSS
$custom: #342ca3;
$custom-light: #7b67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca3",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 244.034,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39019,
    "c": 0.18239,
    "h": 276.8
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#342CA3
secondary
#BAC06B
accent
#E147D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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