#342CAB#342CAB

#342CAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.192 H 275.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#342CAB
RGBrgb(52, 44, 171)
HSLhsl(244, 59%, 42%)
HSVhsv(244, 74%, 67%)
CMYKcmyk(69.6%, 74.3%, 0%, 32.9%)
CIE-LABlab(28.04, 43.57, -66.19)
CIE-LCHlch(28.04, 79.24, 303.35°)
OKLaboklab(39.84% 0.0199 -0.1913)
OKLCHoklch(39.84% 0.192 275.9)
XYZxyz(9.6651, 5.4708, 39.0668)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CAB #A3AB2C
analogous
#2C63AB #342CAB #742CAB
triadic
#342CAB #AB342C #2CAB34
tetradic
#342CAB #AB2C63 #A3AB2C #2CAB74
square
#342CAB #AB2C63 #A3AB2C #2CAB74
split-complementary
#342CAB #AB742C #63AB2C
monochromatic
#16134A #251F7A #342CAB #4E45CF #7C76DC

Accessibility & contrast

On white

10.03
#342CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#342CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CAB
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CAB#FFFFFF#000000##FFFFFF
##342CAB1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342cab;
/* rgb */ color: rgb(52, 44, 171);
/* oklch */ color: oklch(39.8% 0.192 275.9);
Tailwind
colors: {
  custom: {
    50: '#7d67c5',
    500: '#342cab',
    950: '#000000',
  },
}
SCSS
$custom: #342cab;
$custom-light: #7d67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342cab",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 243.78,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.19235,
    "h": 275.9
  },
  "luminance": 0.05472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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