#334CB7#334CB7

#334CB7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.171 H 268.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#334CB7
RGBrgb(51, 76, 183)
HSLhsl(229, 56%, 46%)
HSVhsv(229, 72%, 72%)
CMYKcmyk(72.1%, 58.5%, 0%, 28.2%)
CIE-LABlab(36.54, 27.77, -59.41)
CIE-LCHlch(36.54, 65.58, 295.06°)
OKLaboklab(46.35% -0.0038 -0.1713)
OKLCHoklch(46.35% 0.171 268.7)
XYZxyz(12.4940, 9.2903, 45.9253)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB7 #B79E33
analogous
#338EB7 #334CB7 #5C33B7
triadic
#334CB7 #B7334C #4CB733
tetradic
#334CB7 #B7338E #B79E33 #33B75C
square
#334CB7 #B7338E #B79E33 #33B75C
split-complementary
#334CB7 #B75C33 #8EB733
monochromatic
#182457 #263887 #334CB7 #576ED0 #8797DE

Accessibility & contrast

On white

7.35
#334CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#334CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB7#FFFFFF#000000##FFFFFF
##334CB71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334cb7;
/* rgb */ color: rgb(51, 76, 183);
/* oklch */ color: oklch(46.4% 0.171 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7dcd',
    500: '#334cb7',
    950: '#000000',
  },
}
SCSS
$custom: #334cb7;
$custom-light: #7c7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb7",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 228.636,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4635,
    "c": 0.17138,
    "h": 268.7
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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