#334F78#334F78

#334F78 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.5% C 0.077 H 257.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#334F78
RGBrgb(51, 79, 120)
HSLhsl(216, 40%, 34%)
HSVhsv(216, 58%, 47%)
CMYKcmyk(57.5%, 34.2%, 0%, 52.9%)
CIE-LABlab(33.25, 2.67, -26.55)
CIE-LCHlch(33.25, 26.68, 275.74°)
OKLaboklab(42.51% -0.0162 -0.0749)
OKLCHoklch(42.51% 0.077 257.8)
XYZxyz(7.5502, 7.6512, 18.8446)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F78 #785C33
analogous
#337178 #334F78 #393378
triadic
#334F78 #78334F #4F7833
tetradic
#334F78 #783371 #785C33 #337839
square
#334F78 #783371 #785C33 #337839
split-complementary
#334F78 #783933 #717833
monochromatic
#0E1622 #21334D #334F78 #456BA3 #678ABE

Accessibility & contrast

On white

8.30
#334F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334F78
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F78#FFFFFF#000000##FFFFFF
##334F781.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527A
Deuteranopia (green-blind)
#364B77
Tritanopia (blue-blind)
#07585E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334f78;
/* rgb */ color: rgb(51, 79, 120);
/* oklch */ color: oklch(42.5% 0.077 257.8);
Tailwind
colors: {
  custom: {
    50: '#70809f',
    500: '#334f78',
    950: '#000000',
  },
}
SCSS
$custom: #334f78;
$custom-light: #70809f;
$custom-dark: #000000;
JSON
{
  "hex": "#334f78",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 120
  },
  "hsl": {
    "h": 215.652,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.07658,
    "h": 257.8
  },
  "luminance": 0.07652
}

Semantic roles & 50–950 ramp

primary
#334F78
secondary
#A68A60
accent
#9F58D0
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #334F78

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

Preview Lab → · Contrast checker → · Palette generator →

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