#343A97#343A97

#343A97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.150 H 274.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#343A97
RGBrgb(52, 58, 151)
HSLhsl(236, 49%, 40%)
HSVhsv(236, 66%, 59%)
CMYKcmyk(65.6%, 61.6%, 0%, 40.8%)
CIE-LABlab(29.39, 28.08, -51.86)
CIE-LCHlch(29.39, 58.97, 298.43°)
OKLaboklab(40.25% 0.0121 -0.1493)
OKLCHoklch(40.25% 0.15 274.6)
XYZxyz(8.5133, 5.9898, 29.9797)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343A97 #979134
analogous
#346B97 #343A97 #603497
triadic
#343A97 #97343A #3A9734
tetradic
#343A97 #97346B #979134 #349760
square
#343A97 #97346B #979134 #349760
split-complementary
#343A97 #976034 #6B9734
monochromatic
#15173C #242969 #343A97 #484FC0 #767BD0

Accessibility & contrast

On white

9.55
#343A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#343A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343A97
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343A97#FFFFFF#000000##FFFFFF
##343A971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #343a97;
/* rgb */ color: rgb(52, 58, 151);
/* oklch */ color: oklch(40.3% 0.150 274.6);
Tailwind
colors: {
  custom: {
    50: '#7770b6',
    500: '#343a97',
    950: '#000000',
  },
}
SCSS
$custom: #343a97;
$custom-light: #7770b6;
$custom-dark: #000000;
JSON
{
  "hex": "#343a97",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 236.364,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40252,
    "c": 0.14983,
    "h": 274.6
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#343A97
secondary
#B8B46F
accent
#D04FD8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #343A97

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

Preview Lab → · Contrast checker → · Palette generator →

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