#343EA6#343EA6

#343EA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.165 H 272.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#343EA6
RGBrgb(52, 62, 166)
HSLhsl(235, 52%, 43%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(68.7%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.64, 30.84, -57.27)
CIE-LCHlch(31.64, 65.05, 298.31°)
OKLaboklab(42.3% 0.0082 -0.1652)
OKLCHoklch(42.3% 0.165 272.8)
XYZxyz(10.0194, 6.9276, 36.8781)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA6 #A69C34
analogous
#3477A6 #343EA6 #6334A6
triadic
#343EA6 #A6343E #3EA634
tetradic
#343EA6 #A63477 #A69C34 #34A663
square
#343EA6 #A63477 #A69C34 #34A663
split-complementary
#343EA6 #A66334 #77A634
monochromatic
#171B49 #252D77 #343EA6 #4F5AC8 #7E86D7

Accessibility & contrast

On white

8.80
#343EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #343EA6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA6#FFFFFF#000000##FFFFFF
##343EA61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #343ea6;
/* rgb */ color: rgb(52, 62, 166);
/* oklch */ color: oklch(42.3% 0.165 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a73c1',
    500: '#343ea6',
    950: '#000000',
  },
}
SCSS
$custom: #343ea6;
$custom-light: #7a73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea6",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 234.737,
    "s": 52.294,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42303,
    "c": 0.1654,
    "h": 272.8
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #343EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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