#342CA0#342CA0

#342CA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.179 H 277.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#342CA0
RGBrgb(52, 44, 160)
HSLhsl(244, 57%, 40%)
HSVhsv(244, 73%, 63%)
CMYKcmyk(67.5%, 72.5%, 0%, 37.3%)
CIE-LABlab(26.93, 39.95, -61.37)
CIE-LCHlch(26.93, 73.22, 303.06°)
OKLaboklab(38.72% 0.022 -0.1772)
OKLCHoklch(38.72% 0.179 277.1)
XYZxyz(8.6600, 5.0687, 33.7729)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA0 #98A02C
analogous
#2C5EA0 #342CA0 #6E2CA0
triadic
#342CA0 #A0342C #2CA034
tetradic
#342CA0 #A02C5E #98A02C #2CA06E
square
#342CA0 #A02C5E #98A02C #2CA06E
split-complementary
#342CA0 #A06E2C #5EA02C
monochromatic
#151240 #241F70 #342CA0 #493FCA #766FD7

Accessibility & contrast

On white

10.43
#342CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA0
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA0#FFFFFF#000000##FFFFFF
##342CA01.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342ca0;
/* rgb */ color: rgb(52, 44, 160);
/* oklch */ color: oklch(38.7% 0.179 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a67bd',
    500: '#342ca0',
    950: '#000000',
  },
}
SCSS
$custom: #342ca0;
$custom-light: #7a67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca0",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 244.138,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.1786,
    "h": 277.1
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#342CA0
secondary
#B9BF69
accent
#E048D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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