#343D97#343D97

#343D97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.146 H 273.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#343D97
RGBrgb(52, 61, 151)
HSLhsl(235, 49%, 40%)
HSVhsv(235, 66%, 59%)
CMYKcmyk(65.6%, 59.6%, 0%, 40.8%)
CIE-LABlab(30.16, 26.10, -50.60)
CIE-LCHlch(30.16, 56.94, 297.29°)
OKLaboklab(40.82% 0.0094 -0.1456)
OKLCHoklch(40.82% 0.146 273.7)
XYZxyz(8.6690, 6.3012, 30.0316)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343D97 #978E34
analogous
#346F97 #343D97 #5C3497
triadic
#343D97 #97343D #3D9734
tetradic
#343D97 #97346F #978E34 #34975C
square
#343D97 #97346F #978E34 #34975C
split-complementary
#343D97 #975C34 #6F9734
monochromatic
#15183C #242B69 #343D97 #4853C0 #767ED0

Accessibility & contrast

On white

9.29
#343D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#343D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343D97
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343D97#FFFFFF#000000##FFFFFF
##343D971.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #343d97;
/* rgb */ color: rgb(52, 61, 151);
/* oklch */ color: oklch(40.8% 0.146 273.7);
Tailwind
colors: {
  custom: {
    50: '#7772b6',
    500: '#343d97',
    950: '#000000',
  },
}
SCSS
$custom: #343d97;
$custom-light: #7772b6;
$custom-dark: #000000;
JSON
{
  "hex": "#343d97",
  "rgb": {
    "r": 52,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 234.545,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40824,
    "c": 0.14592,
    "h": 273.7
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#343D97
secondary
#B8B16F
accent
#CC4FD8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #343D97

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

Preview Lab → · Contrast checker → · Palette generator →

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