#334E8E#334E8E

#334E8E is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.7% C 0.111 H 265.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#334E8E
RGBrgb(51, 78, 142)
HSLhsl(222, 47%, 38%)
HSVhsv(222, 64%, 56%)
CMYKcmyk(64.1%, 45.1%, 0%, 44.3%)
CIE-LABlab(34.20, 11.27, -38.60)
CIE-LCHlch(34.20, 40.21, 286.27°)
OKLaboklab(43.66% -0.0097 -0.1101)
OKLCHoklch(43.66% 0.111 265)
XYZxyz(8.9704, 8.1048, 26.6776)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E8E #8E7333
analogous
#337B8E #334E8E #46338E
triadic
#334E8E #8E334E #4E8E33
tetradic
#334E8E #8E337B #8E7333 #338E46
square
#334E8E #8E337B #8E7333 #338E46
split-complementary
#334E8E #8E4633 #7B8E33
monochromatic
#131D34 #233561 #334E8E #4367BB #708BCC

Accessibility & contrast

On white

8.01
#334E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E8E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E8E#FFFFFF#000000##FFFFFF
##334E8E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305590
Deuteranopia (green-blind)
#224D8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334e8e;
/* rgb */ color: rgb(51, 78, 142);
/* oklch */ color: oklch(43.7% 0.111 265.0);
Tailwind
colors: {
  custom: {
    50: '#747faf',
    500: '#334e8e',
    950: '#000000',
  },
}
SCSS
$custom: #334e8e;
$custom-light: #747faf;
$custom-dark: #000000;
JSON
{
  "hex": "#334e8e",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 142
  },
  "hsl": {
    "h": 222.198,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43662,
    "c": 0.11054,
    "h": 265
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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