#343A9D#343A9D

#343A9D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.158 H 274.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#343A9D
RGBrgb(52, 58, 157)
HSLhsl(237, 50%, 41%)
HSVhsv(237, 67%, 62%)
CMYKcmyk(66.9%, 63.1%, 0%, 38.4%)
CIE-LABlab(29.89, 30.22, -54.70)
CIE-LCHlch(29.89, 62.49, 298.92°)
OKLaboklab(40.78% 0.0119 -0.1577)
OKLCHoklch(40.78% 0.158 274.3)
XYZxyz(9.0130, 6.1897, 32.6115)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343A9D #9D9734
analogous
#346E9D #343A9D #62349D
triadic
#343A9D #9D343A #3A9D34
tetradic
#343A9D #9D346E #9D9734 #349D62
square
#343A9D #9D346E #9D9734 #349D62
split-complementary
#343A9D #9D6234 #6E9D34
monochromatic
#161841 #25296F #343A9D #4B52C3 #797ED3

Accessibility & contrast

On white

9.38
#343A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#343A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343A9D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343A9D#FFFFFF#000000##FFFFFF
##343A9D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #343a9d;
/* rgb */ color: rgb(52, 58, 157);
/* oklch */ color: oklch(40.8% 0.158 274.3);
Tailwind
colors: {
  custom: {
    50: '#7970bb',
    500: '#343a9d',
    950: '#000000',
  },
}
SCSS
$custom: #343a9d;
$custom-light: #7970bb;
$custom-dark: #000000;
JSON
{
  "hex": "#343a9d",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 236.571,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40776,
    "c": 0.15813,
    "h": 274.3
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#343A9D
secondary
#BBB772
accent
#D24EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #343A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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