#342CA8#342CA8

#342CA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.189 H 276.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#342CA8
RGBrgb(52, 44, 168)
HSLhsl(244, 58%, 42%)
HSVhsv(244, 74%, 66%)
CMYKcmyk(69%, 73.8%, 0%, 34.1%)
CIE-LABlab(27.73, 42.59, -64.89)
CIE-LCHlch(27.73, 77.62, 303.28°)
OKLaboklab(39.53% 0.0205 -0.1875)
OKLCHoklch(39.53% 0.189 276.2)
XYZxyz(9.3824, 5.3577, 37.5779)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA8 #A0A82C
analogous
#2C62A8 #342CA8 #722CA8
triadic
#342CA8 #A8342C #2CA834
tetradic
#342CA8 #A82C62 #A0A82C #2CA872
square
#342CA8 #A82C62 #A0A82C #2CA872
split-complementary
#342CA8 #A8722C #62A82C
monochromatic
#161347 #251F78 #342CA8 #4C43CE #7A74DB

Accessibility & contrast

On white

10.14
#342CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#342CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA8
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA8#FFFFFF#000000##FFFFFF
##342CA81.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ca8;
/* rgb */ color: rgb(52, 44, 168);
/* oklch */ color: oklch(39.5% 0.189 276.2);
Tailwind
colors: {
  custom: {
    50: '#7c67c3',
    500: '#342ca8',
    950: '#000000',
  },
}
SCSS
$custom: #342ca8;
$custom-light: #7c67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca8",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 243.871,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39528,
    "c": 0.18864,
    "h": 276.2
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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