#334D72#334D72

#334D72 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.7% C 0.070 H 257.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#334D72
RGBrgb(51, 77, 114)
HSLhsl(215, 38%, 32%)
HSVhsv(215, 55%, 45%)
CMYKcmyk(55.3%, 32.5%, 0%, 55.3%)
CIE-LABlab(32.32, 1.88, -24.26)
CIE-LCHlch(32.32, 24.34, 274.42°)
OKLaboklab(41.69% -0.0154 -0.0682)
OKLCHoklch(41.69% 0.07 257.3)
XYZxyz(7.0553, 7.2259, 16.9393)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D72 #725833
analogous
#336D72 #334D72 #383372
triadic
#334D72 #72334D #4D7233
tetradic
#334D72 #72336D #725833 #337238
square
#334D72 #72336D #725833 #337238
split-complementary
#334D72 #723833 #6D7233
monochromatic
#0D141D #203048 #334D72 #466A9C #6588BA

Accessibility & contrast

On white

8.59
#334D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#334D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D72
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D72#FFFFFF#000000##FFFFFF
##334D721.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F74
Deuteranopia (green-blind)
#374971
Tritanopia (blue-blind)
#11555A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334d72;
/* rgb */ color: rgb(51, 77, 114);
/* oklch */ color: oklch(41.7% 0.070 257.3);
Tailwind
colors: {
  custom: {
    50: '#6f7e9a',
    500: '#334d72',
    950: '#000000',
  },
}
SCSS
$custom: #334d72;
$custom-light: #6f7e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#334d72",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 114
  },
  "hsl": {
    "h": 215.238,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41686,
    "c": 0.06996,
    "h": 257.3
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#334D72
secondary
#A2865F
accent
#9E5ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334D72

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

Preview Lab → · Contrast checker → · Palette generator →

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