#334F8F#334F8F

#334F8F is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.0% C 0.111 H 264.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#334F8F
RGBrgb(51, 79, 143)
HSLhsl(222, 47%, 38%)
HSVhsv(222, 64%, 56%)
CMYKcmyk(64.3%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.56, 10.97, -38.64)
CIE-LCHlch(34.56, 40.17, 285.85°)
OKLaboklab(43.96% -0.0106 -0.1102)
OKLCHoklch(43.96% 0.111 264.5)
XYZxyz(9.1174, 8.2781, 27.0986)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F8F #8F7333
analogous
#337D8F #334F8F #45338F
triadic
#334F8F #8F334F #4F8F33
tetradic
#334F8F #8F337D #8F7333 #338F45
square
#334F8F #8F337D #8F7333 #338F45
split-complementary
#334F8F #8F4533 #7D8F33
monochromatic
#131D35 #233662 #334F8F #4368BC #708CCC

Accessibility & contrast

On white

7.91
#334F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#334F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F8F
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F8F#FFFFFF#000000##FFFFFF
##334F8F1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334f8f;
/* rgb */ color: rgb(51, 79, 143);
/* oklch */ color: oklch(44.0% 0.111 264.5);
Tailwind
colors: {
  custom: {
    50: '#747fb0',
    500: '#334f8f',
    950: '#000000',
  },
}
SCSS
$custom: #334f8f;
$custom-light: #747fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#334f8f",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 221.739,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.11073,
    "h": 264.5
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#334F8F
secondary
#B49D6A
accent
#AE51D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #334F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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