#334C8F#334C8F

#334C8F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.3% C 0.115 H 266.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#334C8F
RGBrgb(51, 76, 143)
HSLhsl(224, 47%, 38%)
HSVhsv(224, 64%, 56%)
CMYKcmyk(64.3%, 46.9%, 0%, 43.9%)
CIE-LABlab(33.68, 12.96, -40.04)
CIE-LCHlch(33.68, 42.09, 287.94°)
OKLaboklab(43.28% -0.0074 -0.1144)
OKLCHoklch(43.28% 0.115 266.3)
XYZxyz(8.9059, 7.8551, 27.0281)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8F #8F7633
analogous
#337A8F #334C8F #48338F
triadic
#334C8F #8F334C #4C8F33
tetradic
#334C8F #8F337A #8F7633 #338F48
square
#334C8F #8F337A #8F7633 #338F48
split-complementary
#334C8F #8F4833 #7A8F33
monochromatic
#131C35 #233462 #334C8F #4364BC #7089CC

Accessibility & contrast

On white

8.17
#334C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#334C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C8F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8F#FFFFFF#000000##FFFFFF
##334C8F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5492
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c8f;
/* rgb */ color: rgb(51, 76, 143);
/* oklch */ color: oklch(43.3% 0.115 266.3);
Tailwind
colors: {
  custom: {
    50: '#747db0',
    500: '#334c8f',
    950: '#000000',
  },
}
SCSS
$custom: #334c8f;
$custom-light: #747db0;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8f",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 223.696,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43282,
    "c": 0.11462,
    "h": 266.3
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#334C8F
secondary
#B4A06A
accent
#B351D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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