#334D80#334D80

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

Color values

HEX#334D80
RGBrgb(51, 77, 128)
HSLhsl(220, 43%, 35%)
HSVhsv(220, 60%, 50%)
CMYKcmyk(60.2%, 39.8%, 0%, 49.8%)
CIE-LABlab(33.07, 6.83, -31.79)
CIE-LCHlch(33.07, 32.52, 282.12°)
OKLaboklab(42.52% -0.0115 -0.0902)
OKLCHoklch(42.52% 0.091 262.7)
XYZxyz(7.9141, 7.5694, 21.4619)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D80 #806633
analogous
#337480 #334D80 #3F3380
triadic
#334D80 #80334D #4D8033
tetradic
#334D80 #803374 #806633 #33803F
square
#334D80 #803374 #806633 #33803F
split-complementary
#334D80 #803F33 #748033
monochromatic
#101828 #223354 #334D80 #4467AC #6A88C4

Accessibility & contrast

On white

8.35
#334D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#334D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D80
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D80#FFFFFF#000000##FFFFFF
##334D801.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385282
Deuteranopia (green-blind)
#2E4B7F
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334d80;
/* rgb */ color: rgb(51, 77, 128);
/* oklch */ color: oklch(42.5% 0.091 262.7);
Tailwind
colors: {
  custom: {
    50: '#717ea5',
    500: '#334d80',
    950: '#000000',
  },
}
SCSS
$custom: #334d80;
$custom-light: #717ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#334d80",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 128
  },
  "hsl": {
    "h": 219.74,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42519,
    "c": 0.09091,
    "h": 262.7
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#334D80
secondary
#AB9363
accent
#A855D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334D80

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

Preview Lab → · Contrast checker → · Palette generator →

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