#334786#334786

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

Color values

HEX#334786
RGBrgb(51, 71, 134)
HSLhsl(226, 45%, 36%)
HSVhsv(226, 62%, 53%)
CMYKcmyk(61.9%, 47%, 0%, 47.5%)
CIE-LABlab(31.65, 13.01, -37.76)
CIE-LCHlch(31.65, 39.94, 289.00°)
OKLaboklab(41.54% -0.0034 -0.1078)
OKLCHoklch(41.54% 0.108 268.2)
XYZxyz(7.9201, 6.9309, 23.4701)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334786 #867233
analogous
#337186 #334786 #493386
triadic
#334786 #863347 #478633
tetradic
#334786 #863371 #867233 #338649
square
#334786 #863371 #867233 #338649
split-complementary
#334786 #864933 #718633
monochromatic
#11182D #22305A #334786 #445EB2 #6C82C7

Accessibility & contrast

On white

8.80
#334786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#334786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334786
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334786#FFFFFF#000000##FFFFFF
##3347861.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E88
Deuteranopia (green-blind)
#1D4785
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334786;
/* rgb */ color: rgb(51, 71, 134);
/* oklch */ color: oklch(41.5% 0.108 268.2);
Tailwind
colors: {
  custom: {
    50: '#7379aa',
    500: '#334786',
    950: '#000000',
  },
}
SCSS
$custom: #334786;
$custom-light: #7379aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334786",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 225.542,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41543,
    "c": 0.10781,
    "h": 268.2
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#334786
secondary
#AF9D66
accent
#B553D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334786

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

Preview Lab → · Contrast checker → · Palette generator →

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