#334AB3#334AB3

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

Color values

HEX#334AB3
RGBrgb(51, 74, 179)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 70%)
CMYKcmyk(71.5%, 58.7%, 0%, 29.8%)
CIE-LABlab(35.70, 27.61, -58.40)
CIE-LCHlch(35.70, 64.60, 295.30°)
OKLaboklab(45.63% -0.0024 -0.1684)
OKLCHoklch(45.63% 0.168 269.2)
XYZxyz(11.9479, 8.8548, 43.7186)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB3 #B39C33
analogous
#338AB3 #334AB3 #5C33B3
triadic
#334AB3 #B3334A #4AB333
tetradic
#334AB3 #B3338A #B39C33 #33B35C
square
#334AB3 #B3338A #B39C33 #33B35C
split-complementary
#334AB3 #B35C33 #8AB333
monochromatic
#182354 #253683 #334AB3 #556BCE #8494DC

Accessibility & contrast

On white

7.58
#334AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB3
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB3#FFFFFF#000000##FFFFFF
##334AB31.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ab3;
/* rgb */ color: rgb(51, 74, 179);
/* oklch */ color: oklch(45.6% 0.168 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c7ccb',
    500: '#334ab3',
    950: '#000000',
  },
}
SCSS
$custom: #334ab3;
$custom-light: #7c7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab3",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 229.219,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.16844,
    "h": 269.2
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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