#334DB7#334DB7

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

Color values

HEX#334DB7
RGBrgb(51, 77, 183)
HSLhsl(228, 56%, 46%)
HSVhsv(228, 72%, 72%)
CMYKcmyk(72.1%, 57.9%, 0%, 28.2%)
CIE-LABlab(36.80, 27.12, -58.98)
CIE-LCHlch(36.80, 64.92, 294.69°)
OKLaboklab(46.54% -0.0046 -0.1701)
OKLCHoklch(46.54% 0.17 268.5)
XYZxyz(12.5634, 9.4292, 45.9485)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB7 #B79D33
analogous
#338FB7 #334DB7 #5B33B7
triadic
#334DB7 #B7334D #4DB733
tetradic
#334DB7 #B7338F #B79D33 #33B75B
square
#334DB7 #B7338F #B79D33 #33B75B
split-complementary
#334DB7 #B75B33 #8FB733
monochromatic
#182557 #263987 #334DB7 #576FD0 #8798DE

Accessibility & contrast

On white

7.28
#334DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334DB7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB7#FFFFFF#000000##FFFFFF
##334DB71.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334db7;
/* rgb */ color: rgb(51, 77, 183);
/* oklch */ color: oklch(46.5% 0.170 268.5);
Tailwind
colors: {
  custom: {
    50: '#7c7ecd',
    500: '#334db7',
    950: '#000000',
  },
}
SCSS
$custom: #334db7;
$custom-light: #7c7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#334db7",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 228.182,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46544,
    "c": 0.17014,
    "h": 268.5
  },
  "luminance": 0.0943
}

Semantic roles & 50–950 ramp

primary
#334DB7
secondary
#C7B97F
accent
#C248E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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