#334AB2#334AB2

#334AB2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.167 H 269.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#334AB2
RGBrgb(51, 74, 178)
HSLhsl(229, 55%, 45%)
HSVhsv(229, 71%, 70%)
CMYKcmyk(71.3%, 58.4%, 0%, 30.2%)
CIE-LABlab(35.62, 27.24, -57.94)
CIE-LCHlch(35.62, 64.03, 295.18°)
OKLaboklab(45.55% -0.0024 -0.1671)
OKLCHoklch(45.55% 0.167 269.2)
XYZxyz(11.8471, 8.8145, 43.1879)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB2 #B29B33
analogous
#338AB2 #334AB2 #5C33B2
triadic
#334AB2 #B2334A #4AB233
tetradic
#334AB2 #B2338A #B29B33 #33B25C
square
#334AB2 #B2338A #B29B33 #33B25C
split-complementary
#334AB2 #B25C33 #8AB233
monochromatic
#182253 #253682 #334AB2 #546ACE #8494DC

Accessibility & contrast

On white

7.60
#334AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB2
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB2#FFFFFF#000000##FFFFFF
##334AB21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ab2;
/* rgb */ color: rgb(51, 74, 178);
/* oklch */ color: oklch(45.5% 0.167 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c7cca',
    500: '#334ab2',
    950: '#000000',
  },
}
SCSS
$custom: #334ab2;
$custom-light: #7c7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab2",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 229.134,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45546,
    "c": 0.16708,
    "h": 269.2
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#334AB2
secondary
#C5B87C
accent
#C449DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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