#334FB7#334FB7

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

Color values

HEX#334FB7
RGBrgb(51, 79, 183)
HSLhsl(227, 56%, 46%)
HSVhsv(227, 72%, 72%)
CMYKcmyk(72.1%, 56.8%, 0%, 28.2%)
CIE-LABlab(37.32, 25.81, -58.13)
CIE-LCHlch(37.32, 63.60, 293.95°)
OKLaboklab(46.94% -0.0061 -0.1675)
OKLCHoklch(46.94% 0.168 267.9)
XYZxyz(12.7055, 9.7134, 45.9958)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB7 #B79B33
analogous
#3391B7 #334FB7 #5933B7
triadic
#334FB7 #B7334F #4FB733
tetradic
#334FB7 #B73391 #B79B33 #33B759
square
#334FB7 #B73391 #B79B33 #33B759
split-complementary
#334FB7 #B75933 #91B733
monochromatic
#182657 #263A87 #334FB7 #5771D0 #8799DE

Accessibility & contrast

On white

7.14
#334FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#334FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB7
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB7#FFFFFF#000000##FFFFFF
##334FB71.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334fb7;
/* rgb */ color: rgb(51, 79, 183);
/* oklch */ color: oklch(46.9% 0.168 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7fcd',
    500: '#334fb7',
    950: '#000000',
  },
}
SCSS
$custom: #334fb7;
$custom-light: #7c7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb7",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 227.273,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46938,
    "c": 0.16766,
    "h": 267.9
  },
  "luminance": 0.09715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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