#334D9B#334D9B

#334D9B is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.131 H 267.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#334D9B
RGBrgb(51, 77, 155)
HSLhsl(225, 50%, 40%)
HSVhsv(225, 67%, 61%)
CMYKcmyk(67.1%, 50.3%, 0%, 39.2%)
CIE-LABlab(34.76, 16.74, -45.60)
CIE-LCHlch(34.76, 48.57, 290.16°)
OKLaboklab(44.36% -0.0067 -0.1307)
OKLCHoklch(44.36% 0.131 267.1)
XYZxyz(9.9335, 8.3772, 32.0975)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D9B #9B8133
analogous
#33819B #334D9B #4D339B
triadic
#334D9B #9B334D #4D9B33
tetradic
#334D9B #9B3381 #9B8133 #339B4D
square
#334D9B #9B3381 #9B8133 #339B4D
split-complementary
#334D9B #9B4D33 #819B33
monochromatic
#151F3F #24366D #334D9B #4867C3 #768DD2

Accessibility & contrast

On white

7.85
#334D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#334D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D9B
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D9B#FFFFFF#000000##FFFFFF
##334D9B1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22579E
Deuteranopia (green-blind)
#044D99
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334d9b;
/* rgb */ color: rgb(51, 77, 155);
/* oklch */ color: oklch(44.4% 0.131 267.1);
Tailwind
colors: {
  custom: {
    50: '#767eb9',
    500: '#334d9b',
    950: '#000000',
  },
}
SCSS
$custom: #334d9b;
$custom-light: #767eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#334d9b",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 155
  },
  "hsl": {
    "h": 225,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.13087,
    "h": 267.1
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#334D9B
secondary
#BAA86F
accent
#B74EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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