#334688#334688

#334688 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.112 H 269.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#334688
RGBrgb(51, 70, 136)
HSLhsl(227, 45%, 37%)
HSVhsv(227, 63%, 53%)
CMYKcmyk(62.5%, 48.5%, 0%, 46.7%)
CIE-LABlab(31.49, 14.41, -39.26)
CIE-LCHlch(31.49, 41.82, 290.16°)
OKLaboklab(41.46% -0.0019 -0.1121)
OKLCHoklch(41.46% 0.112 269)
XYZxyz(7.9978, 6.8610, 24.1906)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334688 #887533
analogous
#337188 #334688 #4B3388
triadic
#334688 #883346 #468833
tetradic
#334688 #883371 #887533 #33884B
square
#334688 #883371 #887533 #33884B
split-complementary
#334688 #884B33 #718833
monochromatic
#12182F #222F5B #334688 #445DB5 #6D81C8

Accessibility & contrast

On white

8.85
#334688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#334688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334688
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334688#FFFFFF#000000##FFFFFF
##3346881.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E8A
Deuteranopia (green-blind)
#174787
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334688;
/* rgb */ color: rgb(51, 70, 136);
/* oklch */ color: oklch(41.5% 0.112 269.0);
Tailwind
colors: {
  custom: {
    50: '#7379ab',
    500: '#334688',
    950: '#000000',
  },
}
SCSS
$custom: #334688;
$custom-light: #7379ab;
$custom-dark: #000000;
JSON
{
  "hex": "#334688",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 136
  },
  "hsl": {
    "h": 226.588,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41462,
    "c": 0.11217,
    "h": 269
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#334688
secondary
#B0A067
accent
#B853D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334688

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

Preview Lab → · Contrast checker → · Palette generator →

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