#343FA1#343FA1

#343FA1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.157 H 272.7°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#343FA1
RGBrgb(52, 63, 161)
HSLhsl(234, 51%, 42%)
HSVhsv(234, 68%, 63%)
CMYKcmyk(67.7%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.48, 28.40, -54.52)
CIE-LCHlch(31.48, 61.47, 297.51°)
OKLaboklab(42.06% 0.0075 -0.1571)
OKLCHoklch(42.06% 0.157 272.7)
XYZxyz(9.6246, 6.8574, 34.5277)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343FA1 #A19634
analogous
#3476A1 #343FA1 #6034A1
triadic
#343FA1 #A1343F #3FA134
tetradic
#343FA1 #A13476 #A19634 #34A160
square
#343FA1 #A13476 #A19634 #34A160
split-complementary
#343FA1 #A16034 #76A134
monochromatic
#161B44 #252D73 #343FA1 #4D59C5 #7B84D4

Accessibility & contrast

On white

8.85
#343FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#343FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343FA1
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343FA1#FFFFFF#000000##FFFFFF
##343FA11.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #343fa1;
/* rgb */ color: rgb(52, 63, 161);
/* oklch */ color: oklch(42.1% 0.157 272.7);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#343fa1',
    950: '#000000',
  },
}
SCSS
$custom: #343fa1;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#343fa1",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 233.945,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42055,
    "c": 0.1573,
    "h": 272.7
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#343FA1
secondary
#BDB674
accent
#CC4DDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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