#343EA7#343EA7

#343EA7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.167 H 272.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#343EA7
RGBrgb(52, 62, 167)
HSLhsl(235, 53%, 43%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(68.9%, 62.9%, 0%, 34.5%)
CIE-LABlab(31.73, 31.20, -57.73)
CIE-LCHlch(31.73, 65.63, 298.39°)
OKLaboklab(42.39% 0.0082 -0.1666)
OKLCHoklch(42.39% 0.167 272.8)
XYZxyz(10.1115, 6.9644, 37.3631)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA7 #A79D34
analogous
#3477A7 #343EA7 #6434A7
triadic
#343EA7 #A7343E #3EA734
tetradic
#343EA7 #A73477 #A79D34 #34A764
square
#343EA7 #A73477 #A79D34 #34A764
split-complementary
#343EA7 #A76434 #77A734
monochromatic
#171B4A #252D78 #343EA7 #505AC8 #7E86D7

Accessibility & contrast

On white

8.78
#343EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#343EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EA7
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA7#FFFFFF#000000##FFFFFF
##343EA71.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343ea7;
/* rgb */ color: rgb(52, 62, 167);
/* oklch */ color: oklch(42.4% 0.167 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a73c2',
    500: '#343ea7',
    950: '#000000',
  },
}
SCSS
$custom: #343ea7;
$custom-light: #7a73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea7",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 234.783,
    "s": 52.511,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.16676,
    "h": 272.8
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#343EA7
secondary
#C0BA77
accent
#CF4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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