#334DB3#334DB3

#334DB3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.165 H 268.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#334DB3
RGBrgb(51, 77, 179)
HSLhsl(228, 56%, 45%)
HSVhsv(228, 72%, 70%)
CMYKcmyk(71.5%, 57%, 0%, 29.8%)
CIE-LABlab(36.49, 25.65, -57.13)
CIE-LCHlch(36.49, 62.62, 294.18°)
OKLaboklab(46.22% -0.0047 -0.1646)
OKLCHoklch(46.22% 0.165 268.4)
XYZxyz(12.1530, 9.2650, 43.7869)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB3 #B39933
analogous
#338DB3 #334DB3 #5933B3
triadic
#334DB3 #B3334D #4DB333
tetradic
#334DB3 #B3338D #B39933 #33B359
square
#334DB3 #B3338D #B39933 #33B359
split-complementary
#334DB3 #B35933 #8DB333
monochromatic
#182454 #253983 #334DB3 #556DCE #8496DC

Accessibility & contrast

On white

7.36
#334DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#334DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DB3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB3#FFFFFF#000000##FFFFFF
##334DB31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334db3;
/* rgb */ color: rgb(51, 77, 179);
/* oklch */ color: oklch(46.2% 0.165 268.4);
Tailwind
colors: {
  custom: {
    50: '#7c7eca',
    500: '#334db3',
    950: '#000000',
  },
}
SCSS
$custom: #334db3;
$custom-light: #7c7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#334db3",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 227.813,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46217,
    "c": 0.16469,
    "h": 268.4
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#334DB3
secondary
#C6B77C
accent
#C049DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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