#343498#343498

#343498 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.159 H 276.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#343498
RGBrgb(52, 52, 152)
HSLhsl(240, 49%, 40%)
HSVhsv(240, 66%, 60%)
CMYKcmyk(65.8%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.99, 32.32, -54.76)
CIE-LCHlch(27.99, 63.58, 300.55°)
OKLaboklab(39.25% 0.0172 -0.1579)
OKLCHoklch(39.25% 0.159 276.2)
XYZxyz(8.3098, 5.4523, 30.3142)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343498 #989834
analogous
#346698 #343498 #663498
triadic
#343498 #983434 #349834
tetradic
#343498 #983466 #989834 #349866
square
#343498 #983466 #989834 #349866
split-complementary
#343498 #986634 #669834
monochromatic
#15153D #24246A #343498 #4949C1 #7676D0

Accessibility & contrast

On white

10.04
#343498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#343498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343498
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343498#FFFFFF#000000##FFFFFF
##3434981.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #343498;
/* rgb */ color: rgb(52, 52, 152);
/* oklch */ color: oklch(39.3% 0.159 276.2);
Tailwind
colors: {
  custom: {
    50: '#786cb7',
    500: '#343498',
    950: '#000000',
  },
}
SCSS
$custom: #343498;
$custom-light: #786cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#343498",
  "rgb": {
    "r": 52,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.15881,
    "h": 276.2
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#343498
secondary
#B9B96F
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #343498

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

Preview Lab → · Contrast checker → · Palette generator →

#343498 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva