#343A9A#343A9A

#343A9A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.154 H 274.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#343A9A
RGBrgb(52, 58, 154)
HSLhsl(236, 50%, 40%)
HSVhsv(236, 66%, 60%)
CMYKcmyk(66.2%, 62.3%, 0%, 39.6%)
CIE-LABlab(29.63, 29.15, -53.29)
CIE-LCHlch(29.63, 60.74, 298.68°)
OKLaboklab(40.51% 0.012 -0.1535)
OKLCHoklch(40.51% 0.154 274.5)
XYZxyz(8.7600, 6.0885, 31.2791)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343A9A #9A9434
analogous
#346D9A #343A9A #61349A
triadic
#343A9A #9A343A #3A9A34
tetradic
#343A9A #9A346D #9A9434 #349A61
square
#343A9A #9A346D #9A9434 #349A61
split-complementary
#343A9A #9A6134 #6D9A34
monochromatic
#15183E #25296C #343A9A #4951C2 #777DD1

Accessibility & contrast

On white

9.47
#343A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#343A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343A9A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343A9A#FFFFFF#000000##FFFFFF
##343A9A1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #343a9a;
/* rgb */ color: rgb(52, 58, 154);
/* oklch */ color: oklch(40.5% 0.154 274.5);
Tailwind
colors: {
  custom: {
    50: '#7870b9',
    500: '#343a9a',
    950: '#000000',
  },
}
SCSS
$custom: #343a9a;
$custom-light: #7870b9;
$custom-dark: #000000;
JSON
{
  "hex": "#343a9a",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 236.471,
    "s": 49.515,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40512,
    "c": 0.154,
    "h": 274.5
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#343A9A
secondary
#BAB570
accent
#D14FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #343A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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