#334686#334686

#334686 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.109 H 268.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#334686
RGBrgb(51, 70, 134)
HSLhsl(226, 45%, 36%)
HSVhsv(226, 62%, 53%)
CMYKcmyk(61.9%, 47.8%, 0%, 47.5%)
CIE-LABlab(31.36, 13.68, -38.23)
CIE-LCHlch(31.36, 40.60, 289.69°)
OKLaboklab(41.32% -0.0022 -0.1091)
OKLCHoklch(41.32% 0.109 268.8)
XYZxyz(7.8570, 6.8047, 23.4490)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334686 #867333
analogous
#337086 #334686 #4A3386
triadic
#334686 #863346 #468633
tetradic
#334686 #863370 #867333 #33864A
square
#334686 #863370 #867333 #33864A
split-complementary
#334686 #864A33 #708633
monochromatic
#11182D #222F5A #334686 #445DB2 #6C81C7

Accessibility & contrast

On white

8.89
#334686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#334686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334686
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334686#FFFFFF#000000##FFFFFF
##3346861.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E88
Deuteranopia (green-blind)
#1A4685
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334686;
/* rgb */ color: rgb(51, 70, 134);
/* oklch */ color: oklch(41.3% 0.109 268.8);
Tailwind
colors: {
  custom: {
    50: '#7379aa',
    500: '#334686',
    950: '#000000',
  },
}
SCSS
$custom: #334686;
$custom-light: #7379aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334686",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 134
  },
  "hsl": {
    "h": 226.265,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.10916,
    "h": 268.8
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#334686
secondary
#AF9E66
accent
#B753D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334686

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

Preview Lab → · Contrast checker → · Palette generator →

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