#334E8D#334E8D

#334E8D is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.109 H 264.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#334E8D
RGBrgb(51, 78, 141)
HSLhsl(222, 47%, 38%)
HSVhsv(222, 64%, 55%)
CMYKcmyk(63.8%, 44.7%, 0%, 44.7%)
CIE-LABlab(34.14, 10.90, -38.08)
CIE-LCHlch(34.14, 39.61, 285.97°)
OKLaboklab(43.59% -0.0099 -0.1086)
OKLCHoklch(43.59% 0.109 264.8)
XYZxyz(8.8957, 8.0749, 26.2840)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E8D #8D7233
analogous
#337B8D #334E8D #45338D
triadic
#334E8D #8D334E #4E8D33
tetradic
#334E8D #8D337B #8D7233 #338D45
square
#334E8D #8D337B #8D7233 #338D45
split-complementary
#334E8D #8D4533 #7B8D33
monochromatic
#121C33 #233560 #334E8D #4367BA #6F8BCB

Accessibility & contrast

On white

8.03
#334E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#334E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E8D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E8D#FFFFFF#000000##FFFFFF
##334E8D1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31558F
Deuteranopia (green-blind)
#234C8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334e8d;
/* rgb */ color: rgb(51, 78, 141);
/* oklch */ color: oklch(43.6% 0.109 264.8);
Tailwind
colors: {
  custom: {
    50: '#747faf',
    500: '#334e8d',
    950: '#000000',
  },
}
SCSS
$custom: #334e8d;
$custom-light: #747faf;
$custom-dark: #000000;
JSON
{
  "hex": "#334e8d",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 222,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43594,
    "c": 0.10905,
    "h": 264.8
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#334E8D
secondary
#B39D69
accent
#AF51D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #334E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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