#342BAC#342BAC

#342BAC is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.195 H 276.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#342BAC
RGBrgb(52, 43, 172)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(69.8%, 75%, 0%, 32.5%)
CIE-LABlab(27.94, 44.45, -66.95)
CIE-LCHlch(27.94, 80.36, 303.58°)
OKLaboklab(39.8% 0.0203 -0.1935)
OKLCHoklch(39.8% 0.195 276)
XYZxyz(9.7240, 5.4355, 39.5584)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BAC #A3AC2B
analogous
#2B63AC #342BAC #752BAC
triadic
#342BAC #AC342B #2BAC34
tetradic
#342BAC #AC2B63 #A3AC2B #2BAC75
square
#342BAC #AC2B63 #A3AC2B #2BAC75
split-complementary
#342BAC #AC752B #63AC2B
monochromatic
#16134A #251F7B #342BAC #4E44D0 #7C75DC

Accessibility & contrast

On white

10.06
#342BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342BAC
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BAC#FFFFFF#000000##FFFFFF
##342BAC1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342bac;
/* rgb */ color: rgb(52, 43, 172);
/* oklch */ color: oklch(39.8% 0.195 276.0);
Tailwind
colors: {
  custom: {
    50: '#7d67c6',
    500: '#342bac',
    950: '#000000',
  },
}
SCSS
$custom: #342bac;
$custom-light: #7d67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#342bac",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 244.186,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.398,
    "c": 0.19458,
    "h": 276
  },
  "luminance": 0.05436
}

Semantic roles & 50–950 ramp

primary
#342BAC
secondary
#BEC46F
accent
#E345D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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