#334AB5#334AB5

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

Color values

HEX#334AB5
RGBrgb(51, 74, 181)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 71%)
CMYKcmyk(71.8%, 59.1%, 0%, 29%)
CIE-LABlab(35.86, 28.34, -59.33)
CIE-LCHlch(35.86, 65.75, 295.54°)
OKLaboklab(45.8% -0.0023 -0.1711)
OKLCHoklch(45.8% 0.171 269.2)
XYZxyz(12.1516, 8.9363, 44.7916)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB5 #B59E33
analogous
#338BB5 #334AB5 #5D33B5
triadic
#334AB5 #B5334A #4AB533
tetradic
#334AB5 #B5338B #B59E33 #33B55D
square
#334AB5 #B5338B #B59E33 #33B55D
split-complementary
#334AB5 #B55D33 #8BB533
monochromatic
#182356 #263685 #334AB5 #566BCF #8695DD

Accessibility & contrast

On white

7.53
#334AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#334AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB5#FFFFFF#000000##FFFFFF
##334AB51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ab5;
/* rgb */ color: rgb(51, 74, 181);
/* oklch */ color: oklch(45.8% 0.171 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c7ccc',
    500: '#334ab5',
    950: '#000000',
  },
}
SCSS
$custom: #334ab5;
$custom-light: #7c7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab5",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 229.385,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45797,
    "c": 0.17116,
    "h": 269.2
  },
  "luminance": 0.08938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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