#334EB3#334EB3

#334EB3 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.163 H 268.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#334EB3
RGBrgb(51, 78, 179)
HSLhsl(227, 56%, 45%)
HSVhsv(227, 72%, 70%)
CMYKcmyk(71.5%, 56.4%, 0%, 29.8%)
CIE-LABlab(36.75, 24.99, -56.69)
CIE-LCHlch(36.75, 61.96, 293.79°)
OKLaboklab(46.42% -0.0055 -0.1633)
OKLCHoklch(46.42% 0.163 268.1)
XYZxyz(12.2235, 9.4060, 43.8104)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB3 #B39833
analogous
#338EB3 #334EB3 #5833B3
triadic
#334EB3 #B3334E #4EB333
tetradic
#334EB3 #B3338E #B39833 #33B358
square
#334EB3 #B3338E #B39833 #33B358
split-complementary
#334EB3 #B35833 #8EB333
monochromatic
#182454 #253983 #334EB3 #556ECE #8497DC

Accessibility & contrast

On white

7.29
#334EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#334EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB3
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB3#FFFFFF#000000##FFFFFF
##334EB31.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334eb3;
/* rgb */ color: rgb(51, 78, 179);
/* oklch */ color: oklch(46.4% 0.163 268.1);
Tailwind
colors: {
  custom: {
    50: '#7b7fca',
    500: '#334eb3',
    950: '#000000',
  },
}
SCSS
$custom: #334eb3;
$custom-light: #7b7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb3",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 227.344,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.16343,
    "h": 268.1
  },
  "luminance": 0.09407
}

Semantic roles & 50–950 ramp

primary
#334EB3
secondary
#C6B67C
accent
#BF49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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