#334FB9#334FB9

#334FB9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.170 H 268.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#334FB9
RGBrgb(51, 79, 185)
HSLhsl(227, 57%, 46%)
HSVhsv(227, 72%, 73%)
CMYKcmyk(72.4%, 57.3%, 0%, 27.5%)
CIE-LABlab(37.48, 26.55, -59.06)
CIE-LCHlch(37.48, 64.75, 294.21°)
OKLaboklab(47.1% -0.0061 -0.1703)
OKLCHoklch(47.1% 0.17 268)
XYZxyz(12.9151, 9.7972, 47.0999)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB9 #B99D33
analogous
#3392B9 #334FB9 #5A33B9
triadic
#334FB9 #B9334F #4FB933
tetradic
#334FB9 #B93392 #B99D33 #33B95A
square
#334FB9 #B93392 #B99D33 #33B95A
split-complementary
#334FB9 #B95A33 #92B933
monochromatic
#192659 #263B89 #334FB9 #5871D1 #889ADE

Accessibility & contrast

On white

7.10
#334FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#334FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB9
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB9#FFFFFF#000000##FFFFFF
##334FB91.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fb9;
/* rgb */ color: rgb(51, 79, 185);
/* oklch */ color: oklch(47.1% 0.170 268.0);
Tailwind
colors: {
  custom: {
    50: '#7d80cf',
    500: '#334fb9',
    950: '#000000',
  },
}
SCSS
$custom: #334fb9;
$custom-light: #7d80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb9",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 227.463,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.471,
    "c": 0.17038,
    "h": 268
  },
  "luminance": 0.09799
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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