#334D7C#334D7C

#334D7C is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.085 H 261.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#334D7C
RGBrgb(51, 77, 124)
HSLhsl(219, 42%, 34%)
HSVhsv(219, 59%, 49%)
CMYKcmyk(58.9%, 37.9%, 0%, 51.4%)
CIE-LABlab(32.85, 5.39, -29.67)
CIE-LCHlch(32.85, 30.15, 280.31°)
OKLaboklab(42.27% -0.0126 -0.084)
OKLCHoklch(42.27% 0.085 261.5)
XYZxyz(7.6560, 7.4662, 20.1025)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D7C #7C6233
analogous
#33727C #334D7C #3E337C
triadic
#334D7C #7C334D #4D7C33
tetradic
#334D7C #7C3372 #7C6233 #337C3E
square
#334D7C #7C3372 #7C6233 #337C3E
split-complementary
#334D7C #7C3E33 #727C33
monochromatic
#0F1725 #213251 #334D7C #4568A7 #6888C1

Accessibility & contrast

On white

8.42
#334D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#334D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D7C
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D7C#FFFFFF#000000##FFFFFF
##334D7C1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517E
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334d7c;
/* rgb */ color: rgb(51, 77, 124);
/* oklch */ color: oklch(42.3% 0.085 261.5);
Tailwind
colors: {
  custom: {
    50: '#717ea2',
    500: '#334d7c',
    950: '#000000',
  },
}
SCSS
$custom: #334d7c;
$custom-light: #717ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#334d7c",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 124
  },
  "hsl": {
    "h": 218.63,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.08489,
    "h": 261.5
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#334D7C
secondary
#A99062
accent
#A656D2
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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