#334EB8#334EB8

#334EB8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.170 H 268.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#334EB8
RGBrgb(51, 78, 184)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 72%, 72%)
CMYKcmyk(72.3%, 57.6%, 0%, 27.8%)
CIE-LABlab(37.14, 26.84, -59.02)
CIE-LCHlch(37.14, 64.84, 294.45°)
OKLaboklab(46.82% -0.0053 -0.1702)
OKLCHoklch(46.82% 0.17 268.2)
XYZxyz(12.7384, 9.6120, 46.5221)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB8 #B89D33
analogous
#3390B8 #334EB8 #5B33B8
triadic
#334EB8 #B8334E #4EB833
tetradic
#334EB8 #B83390 #B89D33 #33B85B
square
#334EB8 #B83390 #B89D33 #33B85B
split-complementary
#334EB8 #B85B33 #90B833
monochromatic
#182558 #263A88 #334EB8 #5870D1 #8899DE

Accessibility & contrast

On white

7.19
#334EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#334EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB8
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB8#FFFFFF#000000##FFFFFF
##334EB81.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334eb8;
/* rgb */ color: rgb(51, 78, 184);
/* oklch */ color: oklch(46.8% 0.170 268.2);
Tailwind
colors: {
  custom: {
    50: '#7d7fce',
    500: '#334eb8',
    950: '#000000',
  },
}
SCSS
$custom: #334eb8;
$custom-light: #7d7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb8",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 227.82,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46822,
    "c": 0.17026,
    "h": 268.2
  },
  "luminance": 0.09613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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