#334F79#334F79

#334F79 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.6% C 0.078 H 258.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#334F79
RGBrgb(51, 79, 121)
HSLhsl(216, 41%, 34%)
HSVhsv(216, 58%, 47%)
CMYKcmyk(57.9%, 34.7%, 0%, 52.5%)
CIE-LABlab(33.30, 3.02, -27.09)
CIE-LCHlch(33.30, 27.26, 276.37°)
OKLaboklab(42.57% -0.0159 -0.0764)
OKLCHoklch(42.57% 0.078 258.3)
XYZxyz(7.6112, 7.6756, 19.1659)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F79 #795D33
analogous
#337279 #334F79 #3A3379
triadic
#334F79 #79334F #4F7933
tetradic
#334F79 #793372 #795D33 #33793A
square
#334F79 #793372 #795D33 #33793A
split-complementary
#334F79 #793A33 #727933
monochromatic
#0F1723 #21334E #334F79 #456BA4 #678ABF

Accessibility & contrast

On white

8.28
#334F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#334F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F79
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F79#FFFFFF#000000##FFFFFF
##334F791.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527B
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#05585E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334f79;
/* rgb */ color: rgb(51, 79, 121);
/* oklch */ color: oklch(42.6% 0.078 258.3);
Tailwind
colors: {
  custom: {
    50: '#7080a0',
    500: '#334f79',
    950: '#000000',
  },
}
SCSS
$custom: #334f79;
$custom-light: #7080a0;
$custom-dark: #000000;
JSON
{
  "hex": "#334f79",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 121
  },
  "hsl": {
    "h": 216,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.07806,
    "h": 258.3
  },
  "luminance": 0.07676
}

Semantic roles & 50–950 ramp

primary
#334F79
secondary
#A78B61
accent
#A057D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #334F79

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

Preview Lab → · Contrast checker → · Palette generator →

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