#334FB8#334FB8

#334FB8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.169 H 267.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#334FB8
RGBrgb(51, 79, 184)
HSLhsl(227, 57%, 46%)
HSVhsv(227, 72%, 72%)
CMYKcmyk(72.3%, 57.1%, 0%, 27.8%)
CIE-LABlab(37.40, 26.18, -58.59)
CIE-LCHlch(37.40, 64.18, 294.08°)
OKLaboklab(47.02% -0.0061 -0.1689)
OKLCHoklch(47.02% 0.169 267.9)
XYZxyz(12.8100, 9.7551, 46.5459)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB8 #B89C33
analogous
#3391B8 #334FB8 #5933B8
triadic
#334FB8 #B8334F #4FB833
tetradic
#334FB8 #B83391 #B89C33 #33B859
square
#334FB8 #B83391 #B89C33 #33B859
split-complementary
#334FB8 #B85933 #91B833
monochromatic
#182658 #263A88 #334FB8 #5871D1 #889ADE

Accessibility & contrast

On white

7.12
#334FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#334FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB8
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB8#FFFFFF#000000##FFFFFF
##334FB81.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fb8;
/* rgb */ color: rgb(51, 79, 184);
/* oklch */ color: oklch(47.0% 0.169 267.9);
Tailwind
colors: {
  custom: {
    50: '#7d80ce',
    500: '#334fb8',
    950: '#000000',
  },
}
SCSS
$custom: #334fb8;
$custom-light: #7d80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb8",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 227.368,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.16902,
    "h": 267.9
  },
  "luminance": 0.09756
}

Semantic roles & 50–950 ramp

primary
#334FB8
secondary
#C8B87F
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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