#334D79#334D79

#334D79 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.080 H 260.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#334D79
RGBrgb(51, 77, 121)
HSLhsl(218, 41%, 34%)
HSVhsv(218, 58%, 47%)
CMYKcmyk(57.9%, 36.4%, 0%, 52.5%)
CIE-LABlab(32.68, 4.33, -28.06)
CIE-LCHlch(32.68, 28.39, 278.77°)
OKLaboklab(42.09% -0.0134 -0.0793)
OKLCHoklch(42.09% 0.08 260.4)
XYZxyz(7.4691, 7.3914, 19.1185)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D79 #795F33
analogous
#337079 #334D79 #3C3379
triadic
#334D79 #79334D #4D7933
tetradic
#334D79 #793370 #795F33 #33793C
square
#334D79 #793370 #795F33 #33793C
split-complementary
#334D79 #793C33 #707933
monochromatic
#0F1623 #21324E #334D79 #4568A4 #6788BF

Accessibility & contrast

On white

8.47
#334D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#334D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D79
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D79#FFFFFF#000000##FFFFFF
##334D791.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B507B
Deuteranopia (green-blind)
#324A78
Tritanopia (blue-blind)
#06575D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334d79;
/* rgb */ color: rgb(51, 77, 121);
/* oklch */ color: oklch(42.1% 0.080 260.4);
Tailwind
colors: {
  custom: {
    50: '#707ea0',
    500: '#334d79',
    950: '#000000',
  },
}
SCSS
$custom: #334d79;
$custom-light: #707ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#334d79",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 121
  },
  "hsl": {
    "h": 217.714,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.08039,
    "h": 260.4
  },
  "luminance": 0.07392
}

Semantic roles & 50–950 ramp

primary
#334D79
secondary
#A78D61
accent
#A357D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334D79

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

Preview Lab → · Contrast checker → · Palette generator →

#334D79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva