#334E7E#334E7E

#334E7E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.6% C 0.087 H 261.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#334E7E
RGBrgb(51, 78, 126)
HSLhsl(218, 42%, 35%)
HSVhsv(218, 60%, 49%)
CMYKcmyk(59.5%, 38.1%, 0%, 50.6%)
CIE-LABlab(33.26, 5.45, -30.25)
CIE-LCHlch(33.26, 30.74, 280.22°)
OKLaboklab(42.63% -0.0132 -0.0857)
OKLCHoklch(42.63% 0.087 261.2)
XYZxyz(7.8542, 7.6583, 20.7989)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E7E #7E6333
analogous
#33747E #334E7E #3E337E
triadic
#334E7E #7E334E #4E7E33
tetradic
#334E7E #7E3374 #7E6333 #337E3E
square
#334E7E #7E3374 #7E6333 #337E3E
split-complementary
#334E7E #7E3E33 #747E33
monochromatic
#101827 #213352 #334E7E #4569AA #6989C2

Accessibility & contrast

On white

8.29
#334E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#334E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E7E
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E7E#FFFFFF#000000##FFFFFF
##334E7E1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5280
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334e7e;
/* rgb */ color: rgb(51, 78, 126);
/* oklch */ color: oklch(42.6% 0.087 261.2);
Tailwind
colors: {
  custom: {
    50: '#717fa3',
    500: '#334e7e',
    950: '#000000',
  },
}
SCSS
$custom: #334e7e;
$custom-light: #717fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#334e7e",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 218.4,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.08668,
    "h": 261.2
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#334E7E
secondary
#AA9063
accent
#A556D2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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