#334F89#334F89

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

Color values

HEX#334F89
RGBrgb(51, 79, 137)
HSLhsl(220, 46%, 37%)
HSVhsv(220, 63%, 54%)
CMYKcmyk(62.8%, 42.3%, 0%, 46.3%)
CIE-LABlab(34.19, 8.77, -35.55)
CIE-LCHlch(34.19, 36.62, 283.86°)
OKLaboklab(43.56% -0.0118 -0.1011)
OKLCHoklch(43.56% 0.102 263.3)
XYZxyz(8.6750, 8.1012, 24.7686)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F89 #896D33
analogous
#337A89 #334F89 #423389
triadic
#334F89 #89334F #4F8933
tetradic
#334F89 #89337A #896D33 #338942
square
#334F89 #89337A #896D33 #338942
split-complementary
#334F89 #894233 #7A8933
monochromatic
#121C30 #22355C #334F89 #4469B6 #6E8BC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334F89#FFFFFF#000000##FFFFFF
##334F891.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)
#35558B
Deuteranopia (green-blind)
#294D88
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334f89;
/* rgb */ color: rgb(51, 79, 137);
/* oklch */ color: oklch(43.6% 0.102 263.3);
Tailwind
colors: {
  custom: {
    50: '#737fac',
    500: '#334f89',
    950: '#000000',
  },
}
SCSS
$custom: #334f89;
$custom-light: #737fac;
$custom-dark: #000000;
JSON
{
  "hex": "#334f89",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 137
  },
  "hsl": {
    "h": 220.465,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43557,
    "c": 0.10184,
    "h": 263.3
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#334F89
secondary
#B19967
accent
#AB52D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #334F89

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

Preview Lab → · Contrast checker → · Palette generator →

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