#343AA2#343AA2

#343AA2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.165 H 274.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#343AA2
RGBrgb(52, 58, 162)
HSLhsl(237, 51%, 42%)
HSVhsv(237, 68%, 64%)
CMYKcmyk(67.9%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.31, 32.00, -57.03)
CIE-LCHlch(30.31, 65.39, 299.30°)
OKLaboklab(41.22% 0.0116 -0.1645)
OKLCHoklch(41.22% 0.165 274)
XYZxyz(9.4487, 6.3640, 34.9058)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343AA2 #A29C34
analogous
#3471A2 #343AA2 #6534A2
triadic
#343AA2 #A2343A #3AA234
tetradic
#343AA2 #A23471 #A29C34 #34A265
square
#343AA2 #A23471 #A29C34 #34A265
split-complementary
#343AA2 #A26534 #71A234
monochromatic
#161945 #252974 #343AA2 #4D54C6 #7C80D5

Accessibility & contrast

On white

9.24
#343AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#343AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343AA2
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343AA2#FFFFFF#000000##FFFFFF
##343AA21.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #343aa2;
/* rgb */ color: rgb(52, 58, 162);
/* oklch */ color: oklch(41.2% 0.165 274.0);
Tailwind
colors: {
  custom: {
    50: '#7a70be',
    500: '#343aa2',
    950: '#000000',
  },
}
SCSS
$custom: #343aa2;
$custom-light: #7a70be;
$custom-dark: #000000;
JSON
{
  "hex": "#343aa2",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 236.727,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.16493,
    "h": 274
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#343AA2
secondary
#BEBA74
accent
#D34DDB
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #343AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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