#343AB2#343AB2

#343AB2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.186 H 273.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#343AB2
RGBrgb(52, 58, 178)
HSLhsl(237, 55%, 45%)
HSVhsv(237, 71%, 70%)
CMYKcmyk(70.8%, 67.4%, 0%, 30.2%)
CIE-LABlab(31.74, 37.62, -64.29)
CIE-LCHlch(31.74, 74.49, 300.33°)
OKLaboklab(42.7% 0.0103 -0.1858)
OKLCHoklch(42.7% 0.186 273.2)
XYZxyz(10.9624, 6.9695, 42.8784)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343AB2 #B2AC34
analogous
#3479B2 #343AB2 #6D34B2
triadic
#343AB2 #B2343A #3AB234
tetradic
#343AB2 #B23479 #B2AC34 #34B26D
square
#343AB2 #B23479 #B2AC34 #34B26D
split-complementary
#343AB2 #B26D34 #79B234
monochromatic
#181B53 #262B83 #343AB2 #565BCE #8589DB

Accessibility & contrast

On white

8.77
#343AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #343AB2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343AB2#FFFFFF#000000##FFFFFF
##343AB21.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #343ab2;
/* rgb */ color: rgb(52, 58, 178);
/* oklch */ color: oklch(42.7% 0.186 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d70ca',
    500: '#343ab2',
    950: '#000000',
  },
}
SCSS
$custom: #343ab2;
$custom-light: #7d70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#343ab2",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 237.143,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42698,
    "c": 0.18607,
    "h": 273.2
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#343AB2
secondary
#C5C27D
accent
#D74ADE
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #343AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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