#343FA4#343FA4

#343FA4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.161 H 272.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#343FA4
RGBrgb(52, 63, 164)
HSLhsl(234, 52%, 42%)
HSVhsv(234, 68%, 64%)
CMYKcmyk(68.3%, 61.6%, 0%, 35.7%)
CIE-LABlab(31.73, 29.48, -55.93)
CIE-LCHlch(31.73, 63.22, 297.79°)
OKLaboklab(42.31% 0.0075 -0.1612)
OKLCHoklch(42.31% 0.161 272.7)
XYZxyz(9.8923, 6.9645, 35.9377)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343FA4 #A49934
analogous
#3477A4 #343FA4 #6134A4
triadic
#343FA4 #A4343F #3FA434
tetradic
#343FA4 #A43477 #A49934 #34A461
square
#343FA4 #A43477 #A49934 #34A461
split-complementary
#343FA4 #A46134 #77A434
monochromatic
#171B47 #252D76 #343FA4 #4E5AC7 #7D85D6

Accessibility & contrast

On white

8.78
#343FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#343FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343FA4
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343FA4#FFFFFF#000000##FFFFFF
##343FA41.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343fa4;
/* rgb */ color: rgb(52, 63, 164);
/* oklch */ color: oklch(42.3% 0.161 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a74c0',
    500: '#343fa4',
    950: '#000000',
  },
}
SCSS
$custom: #343fa4;
$custom-light: #7a74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#343fa4",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 234.107,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42313,
    "c": 0.16142,
    "h": 272.7
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#343FA4
secondary
#BFB775
accent
#CD4CDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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