#334D8D#334D8D

#334D8D is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.4% C 0.110 H 265.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#334D8D
RGBrgb(51, 77, 141)
HSLhsl(223, 47%, 38%)
HSVhsv(223, 64%, 55%)
CMYKcmyk(63.8%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.84, 11.56, -38.55)
CIE-LCHlch(33.84, 40.25, 286.70°)
OKLaboklab(43.37% -0.0088 -0.11)
OKLCHoklch(43.37% 0.11 265.4)
XYZxyz(8.8252, 7.9339, 26.2605)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D8D #8D7333
analogous
#337A8D #334D8D #46338D
triadic
#334D8D #8D334D #4D8D33
tetradic
#334D8D #8D337A #8D7333 #338D46
square
#334D8D #8D337A #8D7333 #338D46
split-complementary
#334D8D #8D4633 #7A8D33
monochromatic
#121C33 #233460 #334D8D #4366BA #6F8ACB

Accessibility & contrast

On white

8.12
#334D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#334D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D8D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D8D#FFFFFF#000000##FFFFFF
##334D8D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334d8d;
/* rgb */ color: rgb(51, 77, 141);
/* oklch */ color: oklch(43.4% 0.110 265.4);
Tailwind
colors: {
  custom: {
    50: '#747eaf',
    500: '#334d8d',
    950: '#000000',
  },
}
SCSS
$custom: #334d8d;
$custom-light: #747eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#334d8d",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 222.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43368,
    "c": 0.11034,
    "h": 265.4
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

primary
#334D8D
secondary
#B39E69
accent
#B051D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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