#334F7E#334F7E

#334F7E is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.085 H 260.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#334F7E
RGBrgb(51, 79, 126)
HSLhsl(218, 42%, 35%)
HSVhsv(218, 60%, 49%)
CMYKcmyk(59.5%, 37.3%, 0%, 50.6%)
CIE-LABlab(33.57, 4.80, -29.77)
CIE-LCHlch(33.57, 30.15, 279.15°)
OKLaboklab(42.87% -0.0145 -0.0842)
OKLCHoklch(42.87% 0.085 260.3)
XYZxyz(7.9258, 7.8015, 20.8228)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F7E #7E6233
analogous
#33757E #334F7E #3D337E
triadic
#334F7E #7E334F #4F7E33
tetradic
#334F7E #7E3375 #7E6233 #337E3D
square
#334F7E #7E3375 #7E6233 #337E3D
split-complementary
#334F7E #7E3D33 #757E33
monochromatic
#101827 #213452 #334F7E #456AAA #698AC2

Accessibility & contrast

On white

8.20
#334F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#334F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F7E
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F7E#FFFFFF#000000##FFFFFF
##334F7E1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334f7e;
/* rgb */ color: rgb(51, 79, 126);
/* oklch */ color: oklch(42.9% 0.085 260.3);
Tailwind
colors: {
  custom: {
    50: '#7180a3',
    500: '#334f7e',
    950: '#000000',
  },
}
SCSS
$custom: #334f7e;
$custom-light: #7180a3;
$custom-dark: #000000;
JSON
{
  "hex": "#334f7e",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 126
  },
  "hsl": {
    "h": 217.6,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42868,
    "c": 0.08547,
    "h": 260.3
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#334F7E
secondary
#AA8F63
accent
#A456D2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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