#343EA1#343EA1

#343EA1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.159 H 273.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#343EA1
RGBrgb(52, 62, 161)
HSLhsl(234, 51%, 42%)
HSVhsv(234, 68%, 63%)
CMYKcmyk(67.7%, 61.5%, 0%, 36.9%)
CIE-LABlab(31.23, 29.05, -54.94)
CIE-LCHlch(31.23, 62.14, 297.87°)
OKLaboklab(41.87% 0.0084 -0.1583)
OKLCHoklch(41.87% 0.159 273)
XYZxyz(9.5697, 6.7477, 34.5094)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA1 #A19734
analogous
#3475A1 #343EA1 #6034A1
triadic
#343EA1 #A1343E #3EA134
tetradic
#343EA1 #A13475 #A19734 #34A160
square
#343EA1 #A13475 #A19734 #34A160
split-complementary
#343EA1 #A16034 #75A134
monochromatic
#161A44 #252C73 #343EA1 #4D58C5 #7B83D4

Accessibility & contrast

On white

8.94
#343EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#343EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EA1
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA1#FFFFFF#000000##FFFFFF
##343EA11.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #343ea1;
/* rgb */ color: rgb(52, 62, 161);
/* oklch */ color: oklch(41.9% 0.159 273.0);
Tailwind
colors: {
  custom: {
    50: '#7973be',
    500: '#343ea1',
    950: '#000000',
  },
}
SCSS
$custom: #343ea1;
$custom-light: #7973be;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea1",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 234.495,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41867,
    "c": 0.15857,
    "h": 273
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#343EA1
secondary
#BDB674
accent
#CE4DDB
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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