#334D8A#334D8A

#334D8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.2% C 0.106 H 264.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#334D8A
RGBrgb(51, 77, 138)
HSLhsl(222, 46%, 37%)
HSVhsv(222, 63%, 54%)
CMYKcmyk(63%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.66, 10.46, -37.01)
CIE-LCHlch(33.66, 38.46, 285.78°)
OKLaboklab(43.17% -0.0094 -0.1055)
OKLCHoklch(43.17% 0.106 264.9)
XYZxyz(8.6050, 7.8458, 25.1007)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D8A #8A7033
analogous
#33798A #334D8A #45338A
triadic
#334D8A #8A334D #4D8A33
tetradic
#334D8A #8A3379 #8A7033 #338A45
square
#334D8A #8A3379 #8A7033 #338A45
split-complementary
#334D8A #8A4533 #798A33
monochromatic
#121B31 #22345D #334D8A #4466B7 #6E89C9

Accessibility & contrast

On white

8.17
#334D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#334D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D8A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D8A#FFFFFF#000000##FFFFFF
##334D8A1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#254B89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334d8a;
/* rgb */ color: rgb(51, 77, 138);
/* oklch */ color: oklch(43.2% 0.106 264.9);
Tailwind
colors: {
  custom: {
    50: '#737eac',
    500: '#334d8a',
    950: '#000000',
  },
}
SCSS
$custom: #334d8a;
$custom-light: #737eac;
$custom-dark: #000000;
JSON
{
  "hex": "#334d8a",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 222.069,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43166,
    "c": 0.10588,
    "h": 264.9
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#334D8A
secondary
#B19B67
accent
#AE52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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