#334E8A#334E8A

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

Color values

HEX#334E8A
RGBrgb(51, 78, 138)
HSLhsl(221, 46%, 37%)
HSVhsv(221, 63%, 54%)
CMYKcmyk(63%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.96, 9.80, -36.54)
CIE-LCHlch(33.96, 37.83, 285.01°)
OKLaboklab(43.39% -0.0105 -0.1041)
OKLCHoklch(43.39% 0.105 264.2)
XYZxyz(8.6755, 7.9868, 25.1243)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E8A #8A6F33
analogous
#337A8A #334E8A #43338A
triadic
#334E8A #8A334E #4E8A33
tetradic
#334E8A #8A337A #8A6F33 #338A43
square
#334E8A #8A337A #8A6F33 #338A43
split-complementary
#334E8A #8A4333 #7A8A33
monochromatic
#121B31 #22355D #334E8A #4467B7 #6E8AC9

Accessibility & contrast

On white

8.08
#334E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E8A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E8A#FFFFFF#000000##FFFFFF
##334E8A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#264C89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334e8a;
/* rgb */ color: rgb(51, 78, 138);
/* oklch */ color: oklch(43.4% 0.105 264.2);
Tailwind
colors: {
  custom: {
    50: '#737fac',
    500: '#334e8a',
    950: '#000000',
  },
}
SCSS
$custom: #334e8a;
$custom-light: #737fac;
$custom-dark: #000000;
JSON
{
  "hex": "#334e8a",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 221.379,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43394,
    "c": 0.1046,
    "h": 264.2
  },
  "luminance": 0.07988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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