#343EA4#343EA4

#343EA4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.163 H 272.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#343EA4
RGBrgb(52, 62, 164)
HSLhsl(235, 52%, 42%)
HSVhsv(235, 68%, 64%)
CMYKcmyk(68.3%, 62.2%, 0%, 35.7%)
CIE-LABlab(31.47, 30.13, -56.34)
CIE-LCHlch(31.47, 63.89, 298.13°)
OKLaboklab(42.13% 0.0083 -0.1625)
OKLCHoklch(42.13% 0.163 272.9)
XYZxyz(9.8374, 6.8547, 35.9194)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA4 #A49A34
analogous
#3476A4 #343EA4 #6234A4
triadic
#343EA4 #A4343E #3EA434
tetradic
#343EA4 #A43476 #A49A34 #34A462
square
#343EA4 #A43476 #A49A34 #34A462
split-complementary
#343EA4 #A46234 #76A434
monochromatic
#171B47 #252C76 #343EA4 #4E59C7 #7D85D6

Accessibility & contrast

On white

8.86
#343EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#343EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EA4
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA4#FFFFFF#000000##FFFFFF
##343EA41.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #343ea4;
/* rgb */ color: rgb(52, 62, 164);
/* oklch */ color: oklch(42.1% 0.163 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a73c0',
    500: '#343ea4',
    950: '#000000',
  },
}
SCSS
$custom: #343ea4;
$custom-light: #7a73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea4",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 234.643,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.16268,
    "h": 272.9
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#343EA4
secondary
#BFB875
accent
#CF4CDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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