#334E89#334E89

#334E89 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.103 H 264.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#334E89
RGBrgb(51, 78, 137)
HSLhsl(221, 46%, 37%)
HSVhsv(221, 63%, 54%)
CMYKcmyk(62.8%, 43.1%, 0%, 46.3%)
CIE-LABlab(33.90, 9.43, -36.02)
CIE-LCHlch(33.90, 37.24, 284.67°)
OKLaboklab(43.33% -0.0107 -0.1026)
OKLCHoklch(43.33% 0.103 264.1)
XYZxyz(8.6034, 7.9580, 24.7447)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E89 #896E33
analogous
#337989 #334E89 #433389
triadic
#334E89 #89334E #4E8933
tetradic
#334E89 #893379 #896E33 #338943
square
#334E89 #893379 #896E33 #338943
split-complementary
#334E89 #894333 #798933
monochromatic
#121B30 #22355C #334E89 #4467B6 #6E8AC9

Accessibility & contrast

On white

8.10
#334E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#334E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E89
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E89#FFFFFF#000000##FFFFFF
##334E891.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548B
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334e89;
/* rgb */ color: rgb(51, 78, 137);
/* oklch */ color: oklch(43.3% 0.103 264.1);
Tailwind
colors: {
  custom: {
    50: '#737fac',
    500: '#334e89',
    950: '#000000',
  },
}
SCSS
$custom: #334e89;
$custom-light: #737fac;
$custom-dark: #000000;
JSON
{
  "hex": "#334e89",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 221.163,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43328,
    "c": 0.10311,
    "h": 264.1
  },
  "luminance": 0.07959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334E89

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

Preview Lab → · Contrast checker → · Palette generator →

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