#334C71#334C71

#334C71 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.4% C 0.070 H 258.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#334C71
RGBrgb(51, 76, 113)
HSLhsl(216, 38%, 32%)
HSVhsv(216, 55%, 44%)
CMYKcmyk(54.9%, 32.7%, 0%, 55.7%)
CIE-LABlab(31.95, 2.18, -24.20)
CIE-LCHlch(31.95, 24.30, 275.15°)
OKLaboklab(41.39% -0.0144 -0.0681)
OKLCHoklch(41.39% 0.07 258)
XYZxyz(6.9293, 7.0644, 16.6180)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C71 #715833
analogous
#336B71 #334C71 #393371
triadic
#334C71 #71334C #4C7133
tetradic
#334C71 #71336B #715833 #337139
square
#334C71 #71336B #715833 #337139
split-complementary
#334C71 #713933 #6B7133
monochromatic
#0D131D #203047 #334C71 #46689B #6587B9

Accessibility & contrast

On white

8.70
#334C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#334C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C71
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C71#FFFFFF#000000##FFFFFF
##334C711.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4E73
Deuteranopia (green-blind)
#364870
Tritanopia (blue-blind)
#135459
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334c71;
/* rgb */ color: rgb(51, 76, 113);
/* oklch */ color: oklch(41.4% 0.070 258.0);
Tailwind
colors: {
  custom: {
    50: '#6f7d9a',
    500: '#334c71',
    950: '#000000',
  },
}
SCSS
$custom: #334c71;
$custom-light: #6f7d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#334c71",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 113
  },
  "hsl": {
    "h": 215.806,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41386,
    "c": 0.06959,
    "h": 258
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#334C71
secondary
#A2865E
accent
#9F5ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334C71

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

Preview Lab → · Contrast checker → · Palette generator →

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