#334F71#334F71

#334F71 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.1% C 0.066 H 254.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#334F71
RGBrgb(51, 79, 113)
HSLhsl(213, 38%, 32%)
HSVhsv(213, 55%, 44%)
CMYKcmyk(54.9%, 30.1%, 0%, 55.7%)
CIE-LABlab(32.89, 0.24, -22.74)
CIE-LCHlch(32.89, 22.74, 270.60°)
OKLaboklab(42.12% -0.0184 -0.0638)
OKLCHoklch(42.12% 0.066 254)
XYZxyz(7.1408, 7.4875, 16.6885)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F71 #715533
analogous
#336E71 #334F71 #363371
triadic
#334F71 #71334F #4F7133
tetradic
#334F71 #71336E #715533 #337136
square
#334F71 #71336E #715533 #337136
split-complementary
#334F71 #713633 #6E7133
monochromatic
#0D141D #203247 #334F71 #466C9B #658BB9

Accessibility & contrast

On white

8.41
#334F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#334F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F71
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F71#FFFFFF#000000##FFFFFF
##334F711.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415172
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#12575B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334f71;
/* rgb */ color: rgb(51, 79, 113);
/* oklch */ color: oklch(42.1% 0.066 254.0);
Tailwind
colors: {
  custom: {
    50: '#6f809a',
    500: '#334f71',
    950: '#000000',
  },
}
SCSS
$custom: #334f71;
$custom-light: #6f809a;
$custom-dark: #000000;
JSON
{
  "hex": "#334f71",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 113
  },
  "hsl": {
    "h": 212.903,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.0664,
    "h": 254
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#334F71
secondary
#A2835E
accent
#995ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #334F71

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

Preview Lab → · Contrast checker → · Palette generator →

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