#334DB6#334DB6

#334DB6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.169 H 268.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#334DB6
RGBrgb(51, 77, 182)
HSLhsl(228, 56%, 46%)
HSVhsv(228, 72%, 71%)
CMYKcmyk(72%, 57.7%, 0%, 28.6%)
CIE-LABlab(36.72, 26.75, -58.52)
CIE-LCHlch(36.72, 64.35, 294.57°)
OKLaboklab(46.46% -0.0046 -0.1687)
OKLCHoklch(46.46% 0.169 268.4)
XYZxyz(12.4597, 9.3877, 45.4023)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB6 #B69C33
analogous
#338EB6 #334DB6 #5B33B6
triadic
#334DB6 #B6334D #4DB633
tetradic
#334DB6 #B6338E #B69C33 #33B65B
square
#334DB6 #B6338E #B69C33 #33B65B
split-complementary
#334DB6 #B65B33 #8EB633
monochromatic
#182556 #263986 #334DB6 #566FD0 #8697DD

Accessibility & contrast

On white

7.30
#334DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#334DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DB6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB6#FFFFFF#000000##FFFFFF
##334DB61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334db6;
/* rgb */ color: rgb(51, 77, 182);
/* oklch */ color: oklch(46.5% 0.169 268.4);
Tailwind
colors: {
  custom: {
    50: '#7c7ecd',
    500: '#334db6',
    950: '#000000',
  },
}
SCSS
$custom: #334db6;
$custom-light: #7c7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#334db6",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 228.092,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46462,
    "c": 0.16878,
    "h": 268.4
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#334DB6
secondary
#C7B87E
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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