#343F8B#343F8B

#343F8B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.126 H 273.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#343F8B
RGBrgb(52, 63, 139)
HSLhsl(232, 46%, 37%)
HSVhsv(232, 63%, 55%)
CMYKcmyk(62.6%, 54.7%, 0%, 45.5%)
CIE-LABlab(29.78, 20.42, -43.85)
CIE-LCHlch(29.78, 48.37, 294.97°)
OKLaboklab(40.26% 0.007 -0.1257)
OKLCHoklch(40.26% 0.126 273.2)
XYZxyz(7.8523, 6.1485, 25.1941)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343F8B #8B8034
analogous
#346A8B #343F8B #55348B
triadic
#343F8B #8B343F #3F8B34
tetradic
#343F8B #8B346A #8B8034 #348B55
square
#343F8B #8B346A #8B8034 #348B55
split-complementary
#343F8B #8B5534 #6A8B34
monochromatic
#131732 #232B5E #343F8B #4553B8 #707BC9

Accessibility & contrast

On white

9.42
#343F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#343F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343F8B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343F8B#FFFFFF#000000##FFFFFF
##343F8B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #343f8b;
/* rgb */ color: rgb(52, 63, 139);
/* oklch */ color: oklch(40.3% 0.126 273.2);
Tailwind
colors: {
  custom: {
    50: '#7573ad',
    500: '#343f8b',
    950: '#000000',
  },
}
SCSS
$custom: #343f8b;
$custom-light: #7573ad;
$custom-dark: #000000;
JSON
{
  "hex": "#343f8b",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 232.414,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40255,
    "c": 0.12592,
    "h": 273.2
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#343F8B
secondary
#B2A869
accent
#C553D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #343F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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