#343AA1#343AA1

#343AA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.164 H 274.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#343AA1
RGBrgb(52, 58, 161)
HSLhsl(237, 51%, 42%)
HSVhsv(237, 68%, 63%)
CMYKcmyk(67.7%, 64%, 0%, 36.9%)
CIE-LABlab(30.23, 31.64, -56.57)
CIE-LCHlch(30.23, 64.82, 299.22°)
OKLaboklab(41.13% 0.0117 -0.1632)
OKLCHoklch(41.13% 0.164 274.1)
XYZxyz(9.3601, 6.3285, 34.4396)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343AA1 #A19B34
analogous
#3471A1 #343AA1 #6534A1
triadic
#343AA1 #A1343A #3AA134
tetradic
#343AA1 #A13471 #A19B34 #34A165
square
#343AA1 #A13471 #A19B34 #34A165
split-complementary
#343AA1 #A16534 #71A134
monochromatic
#161944 #252973 #343AA1 #4D53C5 #7B80D4

Accessibility & contrast

On white

9.27
#343AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #343AA1
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343AA1#FFFFFF#000000##FFFFFF
##343AA11.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #343aa1;
/* rgb */ color: rgb(52, 58, 161);
/* oklch */ color: oklch(41.1% 0.164 274.1);
Tailwind
colors: {
  custom: {
    50: '#7970be',
    500: '#343aa1',
    950: '#000000',
  },
}
SCSS
$custom: #343aa1;
$custom-light: #7970be;
$custom-dark: #000000;
JSON
{
  "hex": "#343aa1",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 236.697,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.16358,
    "h": 274.1
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #343AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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