#334CB6#334CB6

#334CB6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.3% C 0.170 H 268.7°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#334CB6
RGBrgb(51, 76, 182)
HSLhsl(229, 56%, 46%)
HSVhsv(229, 72%, 71%)
CMYKcmyk(72%, 58.2%, 0%, 28.6%)
CIE-LABlab(36.46, 27.41, -58.95)
CIE-LCHlch(36.46, 65.01, 294.94°)
OKLaboklab(46.27% -0.0038 -0.17)
OKLCHoklch(46.27% 0.17 268.7)
XYZxyz(12.3903, 9.2488, 45.3791)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB6 #B69D33
analogous
#338DB6 #334CB6 #5C33B6
triadic
#334CB6 #B6334C #4CB633
tetradic
#334CB6 #B6338D #B69D33 #33B65C
square
#334CB6 #B6338D #B69D33 #33B65C
split-complementary
#334CB6 #B65C33 #8DB633
monochromatic
#182456 #263886 #334CB6 #566ED0 #8697DD

Accessibility & contrast

On white

7.37
#334CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334CB6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB6#FFFFFF#000000##FFFFFF
##334CB61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334cb6;
/* rgb */ color: rgb(51, 76, 182);
/* oklch */ color: oklch(46.3% 0.170 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7dcd',
    500: '#334cb6',
    950: '#000000',
  },
}
SCSS
$custom: #334cb6;
$custom-light: #7c7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb6",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 228.55,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.17002,
    "h": 268.7
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#334CB6
secondary
#C7B97E
accent
#C348E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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