#334C8C#334C8C

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

Color values

HEX#334C8C
RGBrgb(51, 76, 140)
HSLhsl(223, 47%, 37%)
HSVhsv(223, 64%, 55%)
CMYKcmyk(63.6%, 45.7%, 0%, 45.1%)
CIE-LABlab(33.49, 11.86, -38.51)
CIE-LCHlch(33.49, 40.29, 287.12°)
OKLaboklab(43.08% -0.0079 -0.1099)
OKLCHoklch(43.08% 0.11 265.9)
XYZxyz(8.6817, 7.7654, 25.8472)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8C #8C7333
analogous
#33798C #334C8C #46338C
triadic
#334C8C #8C334C #4C8C33
tetradic
#334C8C #8C3379 #8C7333 #338C46
square
#334C8C #8C3379 #8C7333 #338C46
split-complementary
#334C8C #8C4633 #798C33
monochromatic
#121B32 #23345F #334C8C #4364B9 #6F89CB

Accessibility & contrast

On white

8.22
#334C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#334C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C8C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8C#FFFFFF#000000##FFFFFF
##334C8C1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538E
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334c8c;
/* rgb */ color: rgb(51, 76, 140);
/* oklch */ color: oklch(43.1% 0.110 265.9);
Tailwind
colors: {
  custom: {
    50: '#747dae',
    500: '#334c8c',
    950: '#000000',
  },
}
SCSS
$custom: #334c8c;
$custom-light: #747dae;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8c",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 140
  },
  "hsl": {
    "h": 223.146,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43076,
    "c": 0.11016,
    "h": 265.9
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#334C8C
secondary
#B29E68
accent
#B152D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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