#334F86#334F86

#334F86 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.097 H 262.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#334F86
RGBrgb(51, 79, 134)
HSLhsl(220, 45%, 36%)
HSVhsv(220, 62%, 53%)
CMYKcmyk(61.9%, 41%, 0%, 47.5%)
CIE-LABlab(34.02, 7.68, -33.99)
CIE-LCHlch(34.02, 34.85, 282.73°)
OKLaboklab(43.36% -0.0125 -0.0966)
OKLCHoklch(43.36% 0.097 262.6)
XYZxyz(8.4628, 8.0163, 23.6510)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F86 #866A33
analogous
#337986 #334F86 #413386
triadic
#334F86 #86334F #4F8633
tetradic
#334F86 #863379 #866A33 #338641
square
#334F86 #863379 #866A33 #338641
split-complementary
#334F86 #864133 #798633
monochromatic
#111B2D #22355A #334F86 #4469B2 #6C8BC7

Accessibility & contrast

On white

8.07
#334F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#334F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F86
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F86#FFFFFF#000000##FFFFFF
##334F861.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375488
Deuteranopia (green-blind)
#2C4C85
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334f86;
/* rgb */ color: rgb(51, 79, 134);
/* oklch */ color: oklch(43.4% 0.097 262.6);
Tailwind
colors: {
  custom: {
    50: '#7280a9',
    500: '#334f86',
    950: '#000000',
  },
}
SCSS
$custom: #334f86;
$custom-light: #7280a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334f86",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 219.759,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43364,
    "c": 0.09738,
    "h": 262.6
  },
  "luminance": 0.08017
}

Semantic roles & 50–950 ramp

primary
#334F86
secondary
#AF9666
accent
#A953D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #334F86

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

Preview Lab → · Contrast checker → · Palette generator →

#334F86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva