#343EA3#343EA3

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

Color values

HEX#343EA3
RGBrgb(52, 62, 163)
HSLhsl(235, 52%, 42%)
HSVhsv(235, 68%, 64%)
CMYKcmyk(68.1%, 62%, 0%, 36.1%)
CIE-LABlab(31.39, 29.77, -55.87)
CIE-LCHlch(31.39, 63.31, 298.05°)
OKLaboklab(42.04% 0.0083 -0.1611)
OKLCHoklch(42.04% 0.161 273)
XYZxyz(9.7474, 6.8188, 35.4457)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343EA3 #A39934
analogous
#3475A3 #343EA3 #6234A3
triadic
#343EA3 #A3343E #3EA334
tetradic
#343EA3 #A33475 #A39934 #34A362
square
#343EA3 #A33475 #A39934 #34A362
split-complementary
#343EA3 #A36234 #75A334
monochromatic
#161B46 #252C75 #343EA3 #4E59C6 #7C84D5

Accessibility & contrast

On white

8.88
#343EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #343EA3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343EA3#FFFFFF#000000##FFFFFF
##343EA31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #343ea3;
/* rgb */ color: rgb(52, 62, 163);
/* oklch */ color: oklch(42.0% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a73bf',
    500: '#343ea3',
    950: '#000000',
  },
}
SCSS
$custom: #343ea3;
$custom-light: #7a73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#343ea3",
  "rgb": {
    "r": 52,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 234.595,
    "s": 51.628,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4204,
    "c": 0.16131,
    "h": 273
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #343EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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