#334F99#334F99

#334F99 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.125 H 265.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#334F99
RGBrgb(51, 79, 153)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 67%, 60%)
CMYKcmyk(66.7%, 48.4%, 0%, 40%)
CIE-LABlab(35.19, 14.67, -43.69)
CIE-LCHlch(35.19, 46.08, 288.56°)
OKLaboklab(44.65% -0.0089 -0.1251)
OKLCHoklch(44.65% 0.125 265.9)
XYZxyz(9.9090, 8.5948, 31.2676)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F99 #997D33
analogous
#338299 #334F99 #4A3399
triadic
#334F99 #99334F #4F9933
tetradic
#334F99 #993382 #997D33 #33994A
square
#334F99 #993382 #997D33 #33994A
split-complementary
#334F99 #994A33 #829933
monochromatic
#14203D #24376B #334F99 #4769C2 #758FD1

Accessibility & contrast

On white

7.72
#334F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#334F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F99
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F99#FFFFFF#000000##FFFFFF
##334F991.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589C
Deuteranopia (green-blind)
#144E97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334f99;
/* rgb */ color: rgb(51, 79, 153);
/* oklch */ color: oklch(44.6% 0.125 265.9);
Tailwind
colors: {
  custom: {
    50: '#767fb7',
    500: '#334f99',
    950: '#000000',
  },
}
SCSS
$custom: #334f99;
$custom-light: #767fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#334f99",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 223.529,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.44648,
    "c": 0.12538,
    "h": 265.9
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#334F99
secondary
#B9A56E
accent
#B34EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F99

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

Preview Lab → · Contrast checker → · Palette generator →

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