#343EA2#343EA2

#343EA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.160 H 273.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#343EA2
RGBrgb(52, 62, 162)
HSLhsl(235, 51%, 42%)
HSVhsv(235, 68%, 64%)
CMYKcmyk(67.9%, 61.7%, 0%, 36.5%)
CIE-LABlab(31.31, 29.41, -55.41)
CIE-LCHlch(31.31, 62.73, 297.96°)
OKLaboklab(41.95% 0.0084 -0.1597)
OKLCHoklch(41.95% 0.16 273)
XYZxyz(9.6582, 6.7831, 34.9757)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA2 #A29834
analogous
#3475A2 #343EA2 #6134A2
triadic
#343EA2 #A2343E #3EA234
tetradic
#343EA2 #A23475 #A29834 #34A261
square
#343EA2 #A23475 #A29834 #34A261
split-complementary
#343EA2 #A26134 #75A234
monochromatic
#161B45 #252C74 #343EA2 #4D58C6 #7C84D5

Accessibility & contrast

On white

8.91
#343EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#343EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343EA2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA2#FFFFFF#000000##FFFFFF
##343EA21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #343ea2;
/* rgb */ color: rgb(52, 62, 162);
/* oklch */ color: oklch(42.0% 0.160 273.0);
Tailwind
colors: {
  custom: {
    50: '#7973be',
    500: '#343ea2',
    950: '#000000',
  },
}
SCSS
$custom: #343ea2;
$custom-light: #7973be;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea2",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 234.545,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41953,
    "c": 0.15994,
    "h": 273
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#343EA2
secondary
#BEB774
accent
#CE4DDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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