#334E71#334E71

#334E71 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.9% C 0.067 H 255.4°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#334E71
RGBrgb(51, 78, 113)
HSLhsl(214, 38%, 32%)
HSVhsv(214, 55%, 44%)
CMYKcmyk(54.9%, 31%, 0%, 55.7%)
CIE-LABlab(32.58, 0.88, -23.23)
CIE-LCHlch(32.58, 23.24, 272.18°)
OKLaboklab(41.88% -0.017 -0.0652)
OKLCHoklch(41.88% 0.067 255.4)
XYZxyz(7.0692, 7.3443, 16.6647)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E71 #715633
analogous
#336D71 #334E71 #373371
triadic
#334E71 #71334E #4E7133
tetradic
#334E71 #71336D #715633 #337137
square
#334E71 #71336D #715633 #337137
split-complementary
#334E71 #713733 #6D7133
monochromatic
#0D141D #203147 #334E71 #466B9B #658AB9

Accessibility & contrast

On white

8.51
#334E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#334E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E71
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E71#FFFFFF#000000##FFFFFF
##334E711.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405073
Deuteranopia (green-blind)
#384A70
Tritanopia (blue-blind)
#12565A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334e71;
/* rgb */ color: rgb(51, 78, 113);
/* oklch */ color: oklch(41.9% 0.067 255.4);
Tailwind
colors: {
  custom: {
    50: '#6f7f9a',
    500: '#334e71',
    950: '#000000',
  },
}
SCSS
$custom: #334e71;
$custom-light: #6f7f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#334e71",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 113
  },
  "hsl": {
    "h": 213.871,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.06742,
    "h": 255.4
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#334E71
secondary
#A2845E
accent
#9B5ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #334E71

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

Preview Lab → · Contrast checker → · Palette generator →

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