#334F7D#334F7D

#334F7D is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.8% C 0.084 H 259.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#334F7D
RGBrgb(51, 79, 125)
HSLhsl(217, 42%, 35%)
HSVhsv(217, 59%, 49%)
CMYKcmyk(59.2%, 36.8%, 0%, 51%)
CIE-LABlab(33.51, 4.44, -29.24)
CIE-LCHlch(33.51, 29.57, 278.64°)
OKLaboklab(42.81% -0.0147 -0.0827)
OKLCHoklch(42.81% 0.084 259.9)
XYZxyz(7.8616, 7.7758, 20.4847)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F7D #7D6133
analogous
#33747D #334F7D #3C337D
triadic
#334F7D #7D334F #4F7D33
tetradic
#334F7D #7D3374 #7D6133 #337D3C
square
#334F7D #7D3374 #7D6133 #337D3C
split-complementary
#334F7D #7D3C33 #747D33
monochromatic
#101826 #213452 #334F7D #456AA8 #698AC2

Accessibility & contrast

On white

8.22
#334F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#334F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F7D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F7D#FFFFFF#000000##FFFFFF
##334F7D1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C537F
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334f7d;
/* rgb */ color: rgb(51, 79, 125);
/* oklch */ color: oklch(42.8% 0.084 259.9);
Tailwind
colors: {
  custom: {
    50: '#7180a3',
    500: '#334f7d',
    950: '#000000',
  },
}
SCSS
$custom: #334f7d;
$custom-light: #7180a3;
$custom-dark: #000000;
JSON
{
  "hex": "#334f7d",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 125
  },
  "hsl": {
    "h": 217.297,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.08398,
    "h": 259.9
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#334F7D
secondary
#AA8F62
accent
#A356D2
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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