#343F8A#343F8A

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

Color values

HEX#343F8A
RGBrgb(52, 63, 138)
HSLhsl(232, 45%, 37%)
HSVhsv(232, 62%, 54%)
CMYKcmyk(62.3%, 54.3%, 0%, 45.9%)
CIE-LABlab(29.71, 20.06, -43.35)
CIE-LCHlch(29.71, 47.76, 294.83°)
OKLaboklab(40.18% 0.007 -0.1242)
OKLCHoklch(40.18% 0.124 273.2)
XYZxyz(7.7796, 6.1194, 24.8110)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343F8A #8A7F34
analogous
#346A8A #343F8A #54348A
triadic
#343F8A #8A343F #3F8A34
tetradic
#343F8A #8A346A #8A7F34 #348A54
square
#343F8A #8A346A #8A7F34 #348A54
split-complementary
#343F8A #8A5434 #6A8A34
monochromatic
#131631 #232B5E #343F8A #4553B6 #6F7BC9

Accessibility & contrast

On white

9.44
#343F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#343F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343F8A
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343F8A#FFFFFF#000000##FFFFFF
##343F8A1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #343f8a;
/* rgb */ color: rgb(52, 63, 138);
/* oklch */ color: oklch(40.2% 0.124 273.2);
Tailwind
colors: {
  custom: {
    50: '#7473ad',
    500: '#343f8a',
    950: '#000000',
  },
}
SCSS
$custom: #343f8a;
$custom-light: #7473ad;
$custom-dark: #000000;
JSON
{
  "hex": "#343f8a",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 232.326,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.12444,
    "h": 273.2
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#343F8A
secondary
#B1A869
accent
#C453D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #343F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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