#334CBD#334CBD

#334CBD is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.179 H 268.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#334CBD
RGBrgb(51, 76, 189)
HSLhsl(229, 58%, 47%)
HSVhsv(229, 73%, 74%)
CMYKcmyk(73%, 59.8%, 0%, 25.9%)
CIE-LABlab(37.01, 29.98, -62.16)
CIE-LCHlch(37.01, 69.01, 295.75°)
OKLaboklab(46.85% -0.0037 -0.1794)
OKLCHoklch(46.85% 0.179 268.8)
XYZxyz(13.1318, 9.5454, 49.2846)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBD #BDA433
analogous
#3391BD #334CBD #5F33BD
triadic
#334CBD #BD334C #4CBD33
tetradic
#334CBD #BD3391 #BDA433 #33BD5F
square
#334CBD #BD3391 #BDA433 #33BD5F
split-complementary
#334CBD #BD5F33 #91BD33
monochromatic
#19255D #26398D #334CBD #5B70D3 #8B9AE0

Accessibility & contrast

On white

7.22
#334CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#334CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBD
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBD#FFFFFF#000000##FFFFFF
##334CBD1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#00687D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334cbd;
/* rgb */ color: rgb(51, 76, 189);
/* oklch */ color: oklch(46.9% 0.179 268.8);
Tailwind
colors: {
  custom: {
    50: '#7e7dd2',
    500: '#334cbd',
    950: '#000000',
  },
}
SCSS
$custom: #334cbd;
$custom-light: #7e7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#334cbd",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 229.13,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46854,
    "c": 0.17946,
    "h": 268.8
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#334CBD
secondary
#CABD82
accent
#C547E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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