#334E8B#334E8B

#334E8B is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.5% C 0.106 H 264.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#334E8B
RGBrgb(51, 78, 139)
HSLhsl(222, 46%, 37%)
HSVhsv(222, 63%, 55%)
CMYKcmyk(63.3%, 43.9%, 0%, 45.5%)
CIE-LABlab(34.02, 10.17, -37.06)
CIE-LCHlch(34.02, 38.43, 285.34°)
OKLaboklab(43.46% -0.0103 -0.1056)
OKLCHoklch(43.46% 0.106 264.4)
XYZxyz(8.7482, 8.0159, 25.5073)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E8B #8B7033
analogous
#337A8B #334E8B #44338B
triadic
#334E8B #8B334E #4E8B33
tetradic
#334E8B #8B337A #8B7033 #338B44
square
#334E8B #8B337A #8B7033 #338B44
split-complementary
#334E8B #8B4433 #7A8B33
monochromatic
#121C31 #23355E #334E8B #4367B8 #6E8BCA

Accessibility & contrast

On white

8.07
#334E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#334E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E8B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E8B#FFFFFF#000000##FFFFFF
##334E8B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#254C8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334e8b;
/* rgb */ color: rgb(51, 78, 139);
/* oklch */ color: oklch(43.5% 0.106 264.4);
Tailwind
colors: {
  custom: {
    50: '#737fad',
    500: '#334e8b',
    950: '#000000',
  },
}
SCSS
$custom: #334e8b;
$custom-light: #737fad;
$custom-dark: #000000;
JSON
{
  "hex": "#334e8b",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 221.591,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4346,
    "c": 0.10609,
    "h": 264.4
  },
  "luminance": 0.08017
}

Semantic roles & 50–950 ramp

primary
#334E8B
secondary
#B29B68
accent
#AD52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #334E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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