#342ABA#342ABA

#342ABA is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.2% C 0.212 H 274.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#342ABA
RGBrgb(52, 42, 186)
HSLhsl(244, 63%, 45%)
HSVhsv(244, 77%, 73%)
CMYKcmyk(72%, 77.4%, 0%, 27.1%)
CIE-LABlab(29.24, 49.45, -73.16)
CIE-LCHlch(29.24, 88.31, 304.05°)
OKLaboklab(41.15% 0.0177 -0.2116)
OKLCHoklch(41.15% 0.212 274.8)
XYZxyz(11.1041, 5.9301, 47.0043)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342ABA #B0BA2A
analogous
#2A68BA #342ABA #7C2ABA
triadic
#342ABA #BA342A #2ABA34
tetradic
#342ABA #BA2A68 #B0BA2A #2ABA7C
square
#342ABA #BA2A68 #B0BA2A #2ABA7C
split-complementary
#342ABA #BA7C2A #68BA2A
monochromatic
#181356 #261F88 #342ABA #554BD6 #847DE2

Accessibility & contrast

On white

9.61
#342ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#342ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342ABA
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342ABA#FFFFFF#000000##FFFFFF
##342ABA1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342aba;
/* rgb */ color: rgb(52, 42, 186);
/* oklch */ color: oklch(41.2% 0.212 274.8);
Tailwind
colors: {
  custom: {
    50: '#8067d0',
    500: '#342aba',
    950: '#000000',
  },
}
SCSS
$custom: #342aba;
$custom-light: #8067d0;
$custom-dark: #000000;
JSON
{
  "hex": "#342aba",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 244.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41151,
    "c": 0.21233,
    "h": 274.8
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#342ABA
secondary
#C4CA76
accent
#E642DB
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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