#342BAA#342BAA

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

Color values

HEX#342BAA
RGBrgb(52, 43, 170)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(69.4%, 74.7%, 0%, 33.3%)
CIE-LABlab(27.73, 43.80, -66.09)
CIE-LCHlch(27.73, 79.29, 303.54°)
OKLaboklab(39.59% 0.0207 -0.191)
OKLCHoklch(39.59% 0.192 276.2)
XYZxyz(9.5334, 5.3592, 38.5544)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BAA #A1AA2B
analogous
#2B62AA #342BAA #742BAA
triadic
#342BAA #AA342B #2BAA34
tetradic
#342BAA #AA2B62 #A1AA2B #2BAA74
square
#342BAA #AA2B62 #A1AA2B #2BAA74
split-complementary
#342BAA #AA742B #62AA2B
monochromatic
#161248 #251F79 #342BAA #4D43CF #7B74DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342BAA#FFFFFF#000000##FFFFFF
##342BAA1.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)
#0047AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342baa;
/* rgb */ color: rgb(52, 43, 170);
/* oklch */ color: oklch(39.6% 0.192 276.2);
Tailwind
colors: {
  custom: {
    50: '#7d66c5',
    500: '#342baa',
    950: '#000000',
  },
}
SCSS
$custom: #342baa;
$custom-light: #7d66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342baa",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 244.252,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39592,
    "c": 0.19213,
    "h": 276.2
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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