#342CAD#342CAD

#342CAD is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.195 H 275.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#342CAD
RGBrgb(52, 44, 173)
HSLhsl(244, 59%, 43%)
HSVhsv(244, 75%, 68%)
CMYKcmyk(69.9%, 74.6%, 0%, 32.2%)
CIE-LABlab(28.24, 44.22, -67.06)
CIE-LCHlch(28.24, 80.32, 303.40°)
OKLaboklab(40.04% 0.0195 -0.1938)
OKLCHoklch(40.04% 0.195 275.7)
XYZxyz(9.8572, 5.5476, 40.0784)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CAD #A5AD2C
analogous
#2C64AD #342CAD #752CAD
triadic
#342CAD #AD342C #2CAD34
tetradic
#342CAD #AD2C64 #A5AD2C #2CAD75
square
#342CAD #AD2C64 #A5AD2C #2CAD75
split-complementary
#342CAD #AD752C #64AD2C
monochromatic
#17134B #25207C #342CAD #4F46D0 #7D77DC

Accessibility & contrast

On white

9.95
#342CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#342CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CAD
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CAD#FFFFFF#000000##FFFFFF
##342CAD1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342cad;
/* rgb */ color: rgb(52, 44, 173);
/* oklch */ color: oklch(40.0% 0.195 275.7);
Tailwind
colors: {
  custom: {
    50: '#7d67c7',
    500: '#342cad',
    950: '#000000',
  },
}
SCSS
$custom: #342cad;
$custom-light: #7d67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342cad",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 173
  },
  "hsl": {
    "h": 243.721,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40043,
    "c": 0.19481,
    "h": 275.7
  },
  "luminance": 0.05549
}

Semantic roles & 50–950 ramp

primary
#342CAD
secondary
#BFC471
accent
#E345D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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