#334684#334684

#334684 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.106 H 268.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#334684
RGBrgb(51, 70, 132)
HSLhsl(226, 44%, 36%)
HSVhsv(226, 61%, 52%)
CMYKcmyk(61.4%, 47%, 0%, 48.2%)
CIE-LABlab(31.23, 12.95, -37.20)
CIE-LCHlch(31.23, 39.39, 289.20°)
OKLaboklab(41.18% -0.0026 -0.1061)
OKLCHoklch(41.18% 0.106 268.6)
XYZxyz(7.7189, 6.7494, 22.7213)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334684 #847133
analogous
#336E84 #334684 #483384
triadic
#334684 #843346 #468433
tetradic
#334684 #84336E #847133 #338448
square
#334684 #84336E #847133 #338448
split-complementary
#334684 #844833 #6E8433
monochromatic
#11172C #222F58 #334684 #445DB0 #6B81C6

Accessibility & contrast

On white

8.94
#334684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#334684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334684
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334684#FFFFFF#000000##FFFFFF
##3346841.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294D86
Deuteranopia (green-blind)
#1D4683
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334684;
/* rgb */ color: rgb(51, 70, 132);
/* oklch */ color: oklch(41.2% 0.106 268.6);
Tailwind
colors: {
  custom: {
    50: '#7279a8',
    500: '#334684',
    950: '#000000',
  },
}
SCSS
$custom: #334684;
$custom-light: #7279a8;
$custom-dark: #000000;
JSON
{
  "hex": "#334684",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 132
  },
  "hsl": {
    "h": 225.926,
    "s": 44.262,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41181,
    "c": 0.10614,
    "h": 268.6
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#334684
secondary
#AE9D65
accent
#B654D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334684

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

Preview Lab → · Contrast checker → · Palette generator →

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