#334EB9#334EB9

#334EB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.172 H 268.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#334EB9
RGBrgb(51, 78, 185)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 72%, 73%)
CMYKcmyk(72.4%, 57.8%, 0%, 27.5%)
CIE-LABlab(37.21, 27.21, -59.48)
CIE-LCHlch(37.21, 65.41, 294.58°)
OKLaboklab(46.91% -0.0053 -0.1715)
OKLCHoklch(46.91% 0.172 268.2)
XYZxyz(12.8436, 9.6540, 47.0761)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB9 #B99E33
analogous
#3391B9 #334EB9 #5B33B9
triadic
#334EB9 #B9334E #4EB933
tetradic
#334EB9 #B93391 #B99E33 #33B95B
square
#334EB9 #B93391 #B99E33 #33B95B
split-complementary
#334EB9 #B95B33 #91B933
monochromatic
#192659 #263A89 #334EB9 #5871D1 #889ADE

Accessibility & contrast

On white

7.16
#334EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#334EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB9#FFFFFF#000000##FFFFFF
##334EB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334eb9;
/* rgb */ color: rgb(51, 78, 185);
/* oklch */ color: oklch(46.9% 0.172 268.2);
Tailwind
colors: {
  custom: {
    50: '#7d7fcf',
    500: '#334eb9',
    950: '#000000',
  },
}
SCSS
$custom: #334eb9;
$custom-light: #7d7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb9",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 227.91,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.17162,
    "h": 268.2
  },
  "luminance": 0.09655
}

Semantic roles & 50–950 ramp

primary
#334EB9
secondary
#C8BA80
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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