#343FA7#343FA7

#343FA7 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.166 H 272.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#343FA7
RGBrgb(52, 63, 167)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(68.9%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.98, 30.56, -57.33)
CIE-LCHlch(31.98, 64.96, 298.06°)
OKLaboklab(42.58% 0.0074 -0.1653)
OKLCHoklch(42.58% 0.166 272.6)
XYZxyz(10.1664, 7.0741, 37.3814)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343FA7 #A79C34
analogous
#3478A7 #343FA7 #6234A7
triadic
#343FA7 #A7343F #3FA734
tetradic
#343FA7 #A73478 #A79C34 #34A762
square
#343FA7 #A73478 #A79C34 #34A762
split-complementary
#343FA7 #A76234 #78A734
monochromatic
#171C4A #252D78 #343FA7 #505BC8 #7E87D7

Accessibility & contrast

On white

8.70
#343FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#343FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343FA7
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343FA7#FFFFFF#000000##FFFFFF
##343FA71.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343fa7;
/* rgb */ color: rgb(52, 63, 167);
/* oklch */ color: oklch(42.6% 0.166 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a74c2',
    500: '#343fa7',
    950: '#000000',
  },
}
SCSS
$custom: #343fa7;
$custom-light: #7a74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#343fa7",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 234.261,
    "s": 52.511,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42575,
    "c": 0.16552,
    "h": 272.6
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#343FA7
secondary
#C0B977
accent
#CE4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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