#334CB8#334CB8

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

Color values

HEX#334CB8
RGBrgb(51, 76, 184)
HSLhsl(229, 57%, 46%)
HSVhsv(229, 72%, 72%)
CMYKcmyk(72.3%, 58.7%, 0%, 27.8%)
CIE-LABlab(36.62, 28.14, -59.87)
CIE-LCHlch(36.62, 66.15, 295.18°)
OKLaboklab(46.43% -0.0038 -0.1727)
OKLCHoklch(46.43% 0.173 268.7)
XYZxyz(12.5984, 9.3321, 46.4754)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB8 #B89F33
analogous
#338EB8 #334CB8 #5C33B8
triadic
#334CB8 #B8334C #4CB833
tetradic
#334CB8 #B8338E #B89F33 #33B85C
square
#334CB8 #B8338E #B89F33 #33B85C
split-complementary
#334CB8 #B85C33 #8EB833
monochromatic
#182458 #263888 #334CB8 #586ED1 #8898DE

Accessibility & contrast

On white

7.33
#334CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#334CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB8#FFFFFF#000000##FFFFFF
##334CB81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334cb8;
/* rgb */ color: rgb(51, 76, 184);
/* oklch */ color: oklch(46.4% 0.173 268.7);
Tailwind
colors: {
  custom: {
    50: '#7d7dce',
    500: '#334cb8',
    950: '#000000',
  },
}
SCSS
$custom: #334cb8;
$custom-light: #7d7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb8",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 228.722,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.17274,
    "h": 268.7
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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