#334F77#334F77

#334F77 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.075 H 257.3°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#334F77
RGBrgb(51, 79, 119)
HSLhsl(215, 40%, 33%)
HSVhsv(215, 57%, 47%)
CMYKcmyk(57.1%, 33.6%, 0%, 53.3%)
CIE-LABlab(33.19, 2.32, -26.01)
CIE-LCHlch(33.19, 26.11, 275.10°)
OKLaboklab(42.46% -0.0164 -0.0733)
OKLCHoklch(42.46% 0.075 257.3)
XYZxyz(7.4898, 7.6271, 18.5267)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F77 #775B33
analogous
#337177 #334F77 #393377
triadic
#334F77 #77334F #4F7733
tetradic
#334F77 #773371 #775B33 #337739
square
#334F77 #773371 #775B33 #337739
split-complementary
#334F77 #773933 #717733
monochromatic
#0E1621 #21334C #334F77 #456BA2 #678BBE

Accessibility & contrast

On white

8.31
#334F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#334F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F77
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F77#FFFFFF#000000##FFFFFF
##334F771.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5279
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#09585D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334f77;
/* rgb */ color: rgb(51, 79, 119);
/* oklch */ color: oklch(42.5% 0.075 257.3);
Tailwind
colors: {
  custom: {
    50: '#70809e',
    500: '#334f77',
    950: '#000000',
  },
}
SCSS
$custom: #334f77;
$custom-light: #70809e;
$custom-dark: #000000;
JSON
{
  "hex": "#334f77",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 119
  },
  "hsl": {
    "h": 215.294,
    "s": 40,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42456,
    "c": 0.07511,
    "h": 257.3
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#334F77
secondary
#A68960
accent
#9E58D0
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #334F77

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

Preview Lab → · Contrast checker → · Palette generator →

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