#343A7B#343A7B

#343A7B is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.0% C 0.109 H 275.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#343A7B
RGBrgb(52, 58, 123)
HSLhsl(235, 41%, 34%)
HSVhsv(235, 58%, 48%)
CMYKcmyk(57.7%, 52.8%, 0%, 51.8%)
CIE-LABlab(27.26, 18.05, -37.95)
CIE-LCHlch(27.26, 42.02, 295.44°)
OKLaboklab(37.99% 0.0113 -0.1084)
OKLCHoklch(37.99% 0.109 275.9)
XYZxyz(6.5032, 5.1858, 19.3933)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343A7B #7B7534
analogous
#345E7B #343A7B #52347B
triadic
#343A7B #7B343A #3A7B34
tetradic
#343A7B #7B345E #7B7534 #347B52
square
#343A7B #7B345E #7B7534 #347B52
split-complementary
#343A7B #7B5234 #5E7B34
monochromatic
#101125 #222650 #343A7B #464EA6 #6A71C0

Accessibility & contrast

On white

10.31
#343A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#343A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343A7B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343A7B#FFFFFF#000000##FFFFFF
##343A7B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437D
Deuteranopia (green-blind)
#0D3E7A
Tritanopia (blue-blind)
#0E4954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #343a7b;
/* rgb */ color: rgb(52, 58, 123);
/* oklch */ color: oklch(38.0% 0.109 275.9);
Tailwind
colors: {
  custom: {
    50: '#7270a2',
    500: '#343a7b',
    950: '#000000',
  },
}
SCSS
$custom: #343a7b;
$custom-light: #7270a2;
$custom-dark: #000000;
JSON
{
  "hex": "#343a7b",
  "rgb": {
    "r": 52,
    "g": 58,
    "b": 123
  },
  "hsl": {
    "h": 234.93,
    "s": 40.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3799,
    "c": 0.10901,
    "h": 275.9
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#343A7B
secondary
#A8A263
accent
#C657D0
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #343A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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