#334C8E#334C8E

#334C8E is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.2% C 0.113 H 266.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#334C8E
RGBrgb(51, 76, 142)
HSLhsl(224, 47%, 38%)
HSVhsv(224, 64%, 56%)
CMYKcmyk(64.1%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.62, 12.60, -39.53)
CIE-LCHlch(33.62, 41.49, 287.67°)
OKLaboklab(43.21% -0.0075 -0.1129)
OKLCHoklch(43.21% 0.113 266.2)
XYZxyz(8.8305, 7.8249, 26.6309)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C8E #8E7533
analogous
#337A8E #334C8E #47338E
triadic
#334C8E #8E334C #4C8E33
tetradic
#334C8E #8E337A #8E7533 #338E47
square
#334C8E #8E337A #8E7533 #338E47
split-complementary
#334C8E #8E4733 #7A8E33
monochromatic
#131C34 #233461 #334C8E #4364BB #7089CC

Accessibility & contrast

On white

8.19
#334C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334C8E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C8E#FFFFFF#000000##FFFFFF
##334C8E1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334c8e;
/* rgb */ color: rgb(51, 76, 142);
/* oklch */ color: oklch(43.2% 0.113 266.2);
Tailwind
colors: {
  custom: {
    50: '#747daf',
    500: '#334c8e',
    950: '#000000',
  },
}
SCSS
$custom: #334c8e;
$custom-light: #747daf;
$custom-dark: #000000;
JSON
{
  "hex": "#334c8e",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 223.516,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43213,
    "c": 0.11313,
    "h": 266.2
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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