#334D99#334D99

#334D99 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.128 H 266.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#334D99
RGBrgb(51, 77, 153)
HSLhsl(225, 50%, 40%)
HSVhsv(225, 67%, 60%)
CMYKcmyk(66.7%, 49.7%, 0%, 40%)
CIE-LABlab(34.62, 16.00, -44.60)
CIE-LCHlch(34.62, 47.39, 289.73°)
OKLaboklab(44.21% -0.0069 -0.1278)
OKLCHoklch(44.21% 0.128 266.9)
XYZxyz(9.7669, 8.3106, 31.2202)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D99 #997F33
analogous
#338099 #334D99 #4C3399
triadic
#334D99 #99334D #4D9933
tetradic
#334D99 #993380 #997F33 #33994C
square
#334D99 #993380 #997F33 #33994C
split-complementary
#334D99 #994C33 #809933
monochromatic
#141F3D #24366B #334D99 #4767C2 #758DD1

Accessibility & contrast

On white

7.89
#334D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#334D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D99
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D99#FFFFFF#000000##FFFFFF
##334D991.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569C
Deuteranopia (green-blind)
#0B4D97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334d99;
/* rgb */ color: rgb(51, 77, 153);
/* oklch */ color: oklch(44.2% 0.128 266.9);
Tailwind
colors: {
  custom: {
    50: '#767eb7',
    500: '#334d99',
    950: '#000000',
  },
}
SCSS
$custom: #334d99;
$custom-light: #767eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#334d99",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 153
  },
  "hsl": {
    "h": 224.706,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.44213,
    "c": 0.12797,
    "h": 266.9
  },
  "luminance": 0.08311
}

Semantic roles & 50–950 ramp

primary
#334D99
secondary
#B9A66E
accent
#B64EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334D99

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

Preview Lab → · Contrast checker → · Palette generator →

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