#342BB6#342BB6

#342BB6 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.207 H 275.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#342BB6
RGBrgb(52, 43, 182)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 76%, 71%)
CMYKcmyk(71.4%, 76.4%, 0%, 28.6%)
CIE-LABlab(28.99, 47.66, -71.19)
CIE-LCHlch(28.99, 85.67, 303.80°)
OKLaboklab(40.85% 0.0181 -0.2059)
OKLCHoklch(40.85% 0.207 275)
XYZxyz(10.7208, 5.8342, 44.8080)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB6 #ADB62B
analogous
#2B68B6 #342BB6 #7A2BB6
triadic
#342BB6 #B6342B #2BB634
tetradic
#342BB6 #B62B68 #ADB62B #2BB67A
square
#342BB6 #B62B68 #ADB62B #2BB67A
split-complementary
#342BB6 #B67A2B #68B62B
monochromatic
#181453 #261F84 #342BB6 #534AD4 #827BE0

Accessibility & contrast

On white

9.69
#342BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#342BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BB6
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB6#FFFFFF#000000##FFFFFF
##342BB61.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342bb6;
/* rgb */ color: rgb(52, 43, 182);
/* oklch */ color: oklch(40.9% 0.207 275.0);
Tailwind
colors: {
  custom: {
    50: '#7f67cd',
    500: '#342bb6',
    950: '#000000',
  },
}
SCSS
$custom: #342bb6;
$custom-light: #7f67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb6",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 243.885,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40852,
    "c": 0.20667,
    "h": 275
  },
  "luminance": 0.05835
}

Semantic roles & 50–950 ramp

primary
#342BB6
secondary
#C3C875
accent
#E543DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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