#343EAB#343EAB

#343EAB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.172 H 272.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#343EAB
RGBrgb(52, 62, 171)
HSLhsl(235, 53%, 44%)
HSVhsv(235, 70%, 67%)
CMYKcmyk(69.6%, 63.7%, 0%, 32.9%)
CIE-LABlab(32.07, 32.63, -59.58)
CIE-LCHlch(32.07, 67.93, 298.71°)
OKLaboklab(42.75% 0.008 -0.172)
OKLCHoklch(42.75% 0.172 272.7)
XYZxyz(10.4870, 7.1146, 39.3408)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EAB #ABA134
analogous
#3479AB #343EAB #6534AB
triadic
#343EAB #AB343E #3EAB34
tetradic
#343EAB #AB3479 #ABA134 #34AB65
square
#343EAB #AB3479 #ABA134 #34AB65
split-complementary
#343EAB #AB6534 #79AB34
monochromatic
#171C4D #262D7C #343EAB #525CCA #8188D9

Accessibility & contrast

On white

8.67
#343EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#343EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EAB
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EAB#FFFFFF#000000##FFFFFF
##343EAB1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343eab;
/* rgb */ color: rgb(52, 62, 171);
/* oklch */ color: oklch(42.7% 0.172 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b73c5',
    500: '#343eab',
    950: '#000000',
  },
}
SCSS
$custom: #343eab;
$custom-light: #7b73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#343eab",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 234.958,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42747,
    "c": 0.17215,
    "h": 272.7
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#343EAB
secondary
#C2BC79
accent
#D14BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #343EAB

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

Preview Lab → · Contrast checker → · Palette generator →

#343EAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva