#334E99#334E99

#334E99 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.127 H 266.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#334E99
RGBrgb(51, 78, 153)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 67%, 60%)
CMYKcmyk(66.7%, 49%, 0%, 40%)
CIE-LABlab(34.91, 15.33, -44.15)
CIE-LCHlch(34.91, 46.73, 289.15°)
OKLaboklab(44.43% -0.0079 -0.1264)
OKLCHoklch(44.43% 0.127 266.4)
XYZxyz(9.8374, 8.4516, 31.2437)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E99 #997E33
analogous
#338199 #334E99 #4B3399
triadic
#334E99 #99334E #4E9933
tetradic
#334E99 #993381 #997E33 #33994B
square
#334E99 #993381 #997E33 #33994B
split-complementary
#334E99 #994B33 #819933
monochromatic
#141F3D #24376B #334E99 #4768C2 #758ED1

Accessibility & contrast

On white

7.81
#334E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#334E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E99
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E99#FFFFFF#000000##FFFFFF
##334E991.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579C
Deuteranopia (green-blind)
#104E97
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334e99;
/* rgb */ color: rgb(51, 78, 153);
/* oklch */ color: oklch(44.4% 0.127 266.4);
Tailwind
colors: {
  custom: {
    50: '#767fb7',
    500: '#334e99',
    950: '#000000',
  },
}
SCSS
$custom: #334e99;
$custom-light: #767fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#334e99",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 224.118,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.4443,
    "c": 0.12667,
    "h": 266.4
  },
  "luminance": 0.08452
}

Semantic roles & 50–950 ramp

primary
#334E99
secondary
#B9A66E
accent
#B54EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334E99

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

Preview Lab → · Contrast checker → · Palette generator →

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