#334D86#334D86

#334D86 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.100 H 264.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#334D86
RGBrgb(51, 77, 134)
HSLhsl(221, 45%, 36%)
HSVhsv(221, 62%, 53%)
CMYKcmyk(61.9%, 42.5%, 0%, 47.5%)
CIE-LABlab(33.42, 9.00, -34.94)
CIE-LCHlch(33.42, 36.08, 284.45°)
OKLaboklab(42.9% -0.0102 -0.0994)
OKLCHoklch(42.9% 0.1 264.2)
XYZxyz(8.3207, 7.7321, 23.6036)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D86 #866C33
analogous
#337786 #334D86 #433386
triadic
#334D86 #86334D #4D8633
tetradic
#334D86 #863377 #866C33 #338643
square
#334D86 #863377 #866C33 #338643
split-complementary
#334D86 #864333 #778633
monochromatic
#111A2D #22345A #334D86 #4466B2 #6C89C7

Accessibility & contrast

On white

8.25
#334D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#334D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D86
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D86#FFFFFF#000000##FFFFFF
##334D861.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345388
Deuteranopia (green-blind)
#284B85
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334d86;
/* rgb */ color: rgb(51, 77, 134);
/* oklch */ color: oklch(42.9% 0.100 264.2);
Tailwind
colors: {
  custom: {
    50: '#727ea9',
    500: '#334d86',
    950: '#000000',
  },
}
SCSS
$custom: #334d86;
$custom-light: #727ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#334d86",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 134
  },
  "hsl": {
    "h": 221.205,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.09991,
    "h": 264.2
  },
  "luminance": 0.07733
}

Semantic roles & 50–950 ramp

primary
#334D86
secondary
#AF9866
accent
#AC53D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334D86

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

Preview Lab → · Contrast checker → · Palette generator →

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