#343EA5#343EA5

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

Color values

HEX#343EA5
RGBrgb(52, 62, 165)
HSLhsl(235, 52%, 43%)
HSVhsv(235, 68%, 65%)
CMYKcmyk(68.5%, 62.4%, 0%, 35.3%)
CIE-LABlab(31.56, 30.49, -56.81)
CIE-LCHlch(31.56, 64.47, 298.22°)
OKLaboklab(42.22% 0.0083 -0.1638)
OKLCHoklch(42.22% 0.164 272.9)
XYZxyz(9.9281, 6.8910, 36.3969)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA5 #A59B34
analogous
#3477A5 #343EA5 #6234A5
triadic
#343EA5 #A5343E #3EA534
tetradic
#343EA5 #A53477 #A59B34 #34A562
square
#343EA5 #A53477 #A59B34 #34A562
split-complementary
#343EA5 #A56234 #77A534
monochromatic
#171B48 #252D76 #343EA5 #4F59C7 #7D85D6

Accessibility & contrast

On white

8.83
#343EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#343EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EA5
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA5#FFFFFF#000000##FFFFFF
##343EA51.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #343ea5;
/* rgb */ color: rgb(52, 62, 165);
/* oklch */ color: oklch(42.2% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a73c1',
    500: '#343ea5',
    950: '#000000',
  },
}
SCSS
$custom: #343ea5;
$custom-light: #7a73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea5",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 234.69,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.16405,
    "h": 272.9
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #343EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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