#334699#334699

#334699 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.137 H 270.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#334699
RGBrgb(51, 70, 153)
HSLhsl(229, 50%, 40%)
HSVhsv(229, 67%, 60%)
CMYKcmyk(66.7%, 54.2%, 0%, 40%)
CIE-LABlab(32.66, 20.67, -47.76)
CIE-LCHlch(32.66, 52.04, 293.40°)
OKLaboklab(42.73% -0.0001 -0.1372)
OKLCHoklch(42.73% 0.137 270)
XYZxyz(9.3032, 7.3832, 31.0656)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334699 #998633
analogous
#337999 #334699 #533399
triadic
#334699 #993346 #469933
tetradic
#334699 #993379 #998633 #339953
square
#334699 #993379 #998633 #339953
split-complementary
#334699 #995333 #799933
monochromatic
#141C3D #24316B #334699 #475EC2 #7586D1

Accessibility & contrast

On white

8.48
#334699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#334699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334699
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334699#FFFFFF#000000##FFFFFF
##3346991.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E529C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334699;
/* rgb */ color: rgb(51, 70, 153);
/* oklch */ color: oklch(42.7% 0.137 270.0);
Tailwind
colors: {
  custom: {
    50: '#7679b8',
    500: '#334699',
    950: '#000000',
  },
}
SCSS
$custom: #334699;
$custom-light: #7679b8;
$custom-dark: #000000;
JSON
{
  "hex": "#334699",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 153
  },
  "hsl": {
    "h": 228.824,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.42729,
    "c": 0.13718,
    "h": 270
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#334699
secondary
#B9AB6E
accent
#C04EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334699

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

Preview Lab → · Contrast checker → · Palette generator →

#334699 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva