#334D76#334D76

#334D76 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 41.9% C 0.076 H 259.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#334D76
RGBrgb(51, 77, 118)
HSLhsl(217, 40%, 33%)
HSVhsv(217, 57%, 46%)
CMYKcmyk(56.8%, 34.7%, 0%, 53.7%)
CIE-LABlab(32.52, 3.27, -26.44)
CIE-LCHlch(32.52, 26.64, 277.05°)
OKLaboklab(41.92% -0.0142 -0.0746)
OKLCHoklch(41.92% 0.076 259.2)
XYZxyz(7.2880, 7.3190, 18.1647)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D76 #765C33
analogous
#336E76 #334D76 #3A3376
triadic
#334D76 #76334D #4D7633
tetradic
#334D76 #76336E #765C33 #33763A
square
#334D76 #76336E #765C33 #33763A
split-complementary
#334D76 #763A33 #6E7633
monochromatic
#0E1521 #21314B #334D76 #4569A1 #6688BD

Accessibility & contrast

On white

8.52
#334D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#334D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D76
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D76#FFFFFF#000000##FFFFFF
##334D761.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5078
Deuteranopia (green-blind)
#344A75
Tritanopia (blue-blind)
#0B565C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334d76;
/* rgb */ color: rgb(51, 77, 118);
/* oklch */ color: oklch(41.9% 0.076 259.2);
Tailwind
colors: {
  custom: {
    50: '#707e9d',
    500: '#334d76',
    950: '#000000',
  },
}
SCSS
$custom: #334d76;
$custom-light: #707e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#334d76",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 118
  },
  "hsl": {
    "h": 216.716,
    "s": 39.645,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41915,
    "c": 0.0759,
    "h": 259.2
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#334D76
secondary
#A58A60
accent
#A158D0
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334D76

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

Preview Lab → · Contrast checker → · Palette generator →

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