#334CB4#334CB4

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

Color values

HEX#334CB4
RGBrgb(51, 76, 180)
HSLhsl(228, 56%, 45%)
HSVhsv(228, 72%, 71%)
CMYKcmyk(71.7%, 57.8%, 0%, 29.4%)
CIE-LABlab(36.30, 26.67, -58.02)
CIE-LCHlch(36.30, 63.86, 294.69°)
OKLaboklab(46.1% -0.0039 -0.1673)
OKLCHoklch(46.1% 0.167 268.7)
XYZxyz(12.1851, 9.1667, 44.2984)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB4 #B49B33
analogous
#338CB4 #334CB4 #5A33B4
triadic
#334CB4 #B4334C #4CB433
tetradic
#334CB4 #B4338C #B49B33 #33B45A
square
#334CB4 #B4338C #B49B33 #33B45A
split-complementary
#334CB4 #B45A33 #8CB433
monochromatic
#182455 #253884 #334CB4 #556DCF #8596DC

Accessibility & contrast

On white

7.41
#334CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#334CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB4#FFFFFF#000000##FFFFFF
##334CB41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334cb4;
/* rgb */ color: rgb(51, 76, 180);
/* oklch */ color: oklch(46.1% 0.167 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7dcb',
    500: '#334cb4',
    950: '#000000',
  },
}
SCSS
$custom: #334cb4;
$custom-light: #7c7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb4",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 228.372,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46102,
    "c": 0.16731,
    "h": 268.7
  },
  "luminance": 0.09168
}

Semantic roles & 50–950 ramp

primary
#334CB4
secondary
#C6B87D
accent
#C249DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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