#343FA6#343FA6

#343FA6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.164 H 272.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#343FA6
RGBrgb(52, 63, 166)
HSLhsl(234, 52%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(68.7%, 62%, 0%, 34.9%)
CIE-LABlab(31.89, 30.20, -56.86)
CIE-LCHlch(31.89, 64.38, 297.97°)
OKLaboklab(42.49% 0.0074 -0.164)
OKLCHoklch(42.49% 0.164 272.6)
XYZxyz(10.0743, 7.0373, 36.8964)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343FA6 #A69B34
analogous
#3478A6 #343FA6 #6234A6
triadic
#343FA6 #A6343F #3FA634
tetradic
#343FA6 #A63478 #A69B34 #34A662
square
#343FA6 #A63478 #A69B34 #34A662
split-complementary
#343FA6 #A66234 #78A634
monochromatic
#171C49 #252D77 #343FA6 #4F5BC8 #7E86D7

Accessibility & contrast

On white

8.72
#343FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #343FA6
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343FA6#FFFFFF#000000##FFFFFF
##343FA61.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343fa6;
/* rgb */ color: rgb(52, 63, 166);
/* oklch */ color: oklch(42.5% 0.164 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a74c1',
    500: '#343fa6',
    950: '#000000',
  },
}
SCSS
$custom: #343fa6;
$custom-light: #7a74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#343fa6",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 234.211,
    "s": 52.294,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.16416,
    "h": 272.6
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #343FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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