#334C8D#334C8D

#334C8D is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.112 H 266.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#334C8D
RGBrgb(51, 76, 141)
HSLhsl(223, 47%, 38%)
HSVhsv(223, 64%, 55%)
CMYKcmyk(63.8%, 46.1%, 0%, 44.7%)
CIE-LABlab(33.55, 12.23, -39.02)
CIE-LCHlch(33.55, 40.89, 287.40°)
OKLaboklab(43.14% -0.0077 -0.1114)
OKLCHoklch(43.14% 0.112 266)
XYZxyz(8.7557, 7.7950, 26.2373)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8D #8D7433
analogous
#33798D #334C8D #47338D
triadic
#334C8D #8D334C #4C8D33
tetradic
#334C8D #8D3379 #8D7433 #338D47
square
#334C8D #8D3379 #8D7433 #338D47
split-complementary
#334C8D #8D4733 #798D33
monochromatic
#121C33 #233460 #334C8D #4364BA #6F89CB

Accessibility & contrast

On white

8.21
#334C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334C8D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8D#FFFFFF#000000##FFFFFF
##334C8D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D538F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c8d;
/* rgb */ color: rgb(51, 76, 141);
/* oklch */ color: oklch(43.1% 0.112 266.0);
Tailwind
colors: {
  custom: {
    50: '#747daf',
    500: '#334c8d',
    950: '#000000',
  },
}
SCSS
$custom: #334c8d;
$custom-light: #747daf;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8d",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 223.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43144,
    "c": 0.11165,
    "h": 266
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#334C8D
secondary
#B39E69
accent
#B251D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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