#334DB8#334DB8

#334DB8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.172 H 268.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#334DB8
RGBrgb(51, 77, 184)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 72%, 72%)
CMYKcmyk(72.3%, 58.2%, 0%, 27.8%)
CIE-LABlab(36.88, 27.49, -59.45)
CIE-LCHlch(36.88, 65.50, 294.82°)
OKLaboklab(46.63% -0.0046 -0.1714)
OKLCHoklch(46.63% 0.172 268.5)
XYZxyz(12.6679, 9.4709, 46.4986)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB8 #B89E33
analogous
#338FB8 #334DB8 #5B33B8
triadic
#334DB8 #B8334D #4DB833
tetradic
#334DB8 #B8338F #B89E33 #33B85B
square
#334DB8 #B8338F #B89E33 #33B85B
split-complementary
#334DB8 #B85B33 #8FB833
monochromatic
#182558 #263988 #334DB8 #586FD1 #8898DE

Accessibility & contrast

On white

7.26
#334DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#334DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DB8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB8#FFFFFF#000000##FFFFFF
##334DB81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334db8;
/* rgb */ color: rgb(51, 77, 184);
/* oklch */ color: oklch(46.6% 0.172 268.5);
Tailwind
colors: {
  custom: {
    50: '#7d7ece',
    500: '#334db8',
    950: '#000000',
  },
}
SCSS
$custom: #334db8;
$custom-light: #7d7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#334db8",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 228.271,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46627,
    "c": 0.1715,
    "h": 268.5
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#334DB8
secondary
#C8BA7F
accent
#C248E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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