#334D8F#334D8F

#334D8F is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.5% C 0.113 H 265.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#334D8F
RGBrgb(51, 77, 143)
HSLhsl(223, 47%, 38%)
HSVhsv(223, 64%, 56%)
CMYKcmyk(64.3%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.97, 12.30, -39.57)
CIE-LCHlch(33.97, 41.44, 287.26°)
OKLaboklab(43.51% -0.0084 -0.113)
OKLCHoklch(43.51% 0.113 265.7)
XYZxyz(8.9753, 7.9939, 27.0513)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D8F #8F7533
analogous
#337B8F #334D8F #47338F
triadic
#334D8F #8F334D #4D8F33
tetradic
#334D8F #8F337B #8F7533 #338F47
square
#334D8F #8F337B #8F7533 #338F47
split-complementary
#334D8F #8F4733 #7B8F33
monochromatic
#131C35 #233562 #334D8F #4365BC #708ACC

Accessibility & contrast

On white

8.08
#334D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#334D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D8F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D8F#FFFFFF#000000##FFFFFF
##334D8F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5491
Deuteranopia (green-blind)
#1F4C8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334d8f;
/* rgb */ color: rgb(51, 77, 143);
/* oklch */ color: oklch(43.5% 0.113 265.7);
Tailwind
colors: {
  custom: {
    50: '#747eb0',
    500: '#334d8f',
    950: '#000000',
  },
}
SCSS
$custom: #334d8f;
$custom-light: #747eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#334d8f",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 223.043,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.1133,
    "h": 265.7
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#334D8F
secondary
#B49F6A
accent
#B151D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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