#334D8E#334D8E

#334D8E is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.112 H 265.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#334D8E
RGBrgb(51, 77, 142)
HSLhsl(223, 47%, 38%)
HSVhsv(223, 64%, 56%)
CMYKcmyk(64.1%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.91, 11.93, -39.06)
CIE-LCHlch(33.91, 40.85, 286.98°)
OKLaboklab(43.44% -0.0086 -0.1115)
OKLCHoklch(43.44% 0.112 265.6)
XYZxyz(8.8999, 7.9638, 26.6541)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D8E #8E7433
analogous
#337A8E #334D8E #46338E
triadic
#334D8E #8E334D #4D8E33
tetradic
#334D8E #8E337A #8E7433 #338E46
square
#334D8E #8E337A #8E7433 #338E46
split-complementary
#334D8E #8E4633 #7A8E33
monochromatic
#131C34 #233561 #334D8E #4365BB #708ACC

Accessibility & contrast

On white

8.10
#334D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#334D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D8E
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D8E#FFFFFF#000000##FFFFFF
##334D8E1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334d8e;
/* rgb */ color: rgb(51, 77, 142);
/* oklch */ color: oklch(43.4% 0.112 265.6);
Tailwind
colors: {
  custom: {
    50: '#747eaf',
    500: '#334d8e',
    950: '#000000',
  },
}
SCSS
$custom: #334d8e;
$custom-light: #747eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#334d8e",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 222.857,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43437,
    "c": 0.11183,
    "h": 265.6
  },
  "luminance": 0.07965
}

Semantic roles & 50–950 ramp

primary
#334D8E
secondary
#B49E69
accent
#B151D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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