#342BCC#342BCC

#342BCC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.2% C 0.232 H 273.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#342BCC
RGBrgb(52, 43, 204)
HSLhsl(243, 65%, 48%)
HSVhsv(243, 79%, 80%)
CMYKcmyk(74.5%, 78.9%, 0%, 20%)
CIE-LABlab(31.38, 54.53, -80.18)
CIE-LCHlch(31.38, 96.97, 304.22°)
OKLaboklab(43.23% 0.0132 -0.232)
OKLCHoklch(43.23% 0.232 273.2)
XYZxyz(13.1755, 6.8161, 57.7363)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BCC #C3CC2B
analogous
#2B72CC #342BCC #842BCC
triadic
#342BCC #CC342B #2BCC34
tetradic
#342BCC #CC2B72 #C3CC2B #2BCC84
square
#342BCC #CC2B72 #C3CC2B #2BCC84
split-complementary
#342BCC #CC842B #72CC2B
monochromatic
#1A1667 #272099 #342BCC #6058DC #908BE7

Accessibility & contrast

On white

8.89
#342BCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#342BCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BCC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BCC#FFFFFF#000000##FFFFFF
##342BCC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D0
Deuteranopia (green-blind)
#0042C9
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342bcc;
/* rgb */ color: rgb(52, 43, 204);
/* oklch */ color: oklch(43.2% 0.232 273.2);
Tailwind
colors: {
  custom: {
    50: '#8468dd',
    500: '#342bcc',
    950: '#000000',
  },
}
SCSS
$custom: #342bcc;
$custom-light: #8468dd;
$custom-dark: #000000;
JSON
{
  "hex": "#342bcc",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 243.354,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43233,
    "c": 0.23236,
    "h": 273.2
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

primary
#342BCC
secondary
#CCD082
accent
#E840DF
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #342BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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