#334AB4#334AB4

#334AB4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.170 H 269.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#334AB4
RGBrgb(51, 74, 180)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 71%)
CMYKcmyk(71.7%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.78, 27.98, -58.87)
CIE-LCHlch(35.78, 65.18, 295.42°)
OKLaboklab(45.71% -0.0023 -0.1698)
OKLCHoklch(45.71% 0.17 269.2)
XYZxyz(12.0494, 8.8954, 44.2531)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB4 #B49D33
analogous
#338BB4 #334AB4 #5C33B4
triadic
#334AB4 #B4334A #4AB433
tetradic
#334AB4 #B4338B #B49D33 #33B45C
square
#334AB4 #B4338B #B49D33 #33B45C
split-complementary
#334AB4 #B45C33 #8BB433
monochromatic
#182355 #253684 #334AB4 #556BCF #8595DC

Accessibility & contrast

On white

7.56
#334AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#334AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB4
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB4#FFFFFF#000000##FFFFFF
##334AB41.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ab4;
/* rgb */ color: rgb(51, 74, 180);
/* oklch */ color: oklch(45.7% 0.170 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c7ccb',
    500: '#334ab4',
    950: '#000000',
  },
}
SCSS
$custom: #334ab4;
$custom-light: #7c7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab4",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 229.302,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.1698,
    "h": 269.2
  },
  "luminance": 0.08897
}

Semantic roles & 50–950 ramp

primary
#334AB4
secondary
#C6B97D
accent
#C449DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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