#334FB5#334FB5

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

Color values

HEX#334FB5
RGBrgb(51, 79, 181)
HSLhsl(227, 56%, 45%)
HSVhsv(227, 72%, 71%)
CMYKcmyk(71.8%, 56.4%, 0%, 29%)
CIE-LABlab(37.17, 25.07, -57.20)
CIE-LCHlch(37.17, 62.45, 293.67°)
OKLaboklab(46.78% -0.0062 -0.1648)
OKLCHoklch(46.78% 0.165 267.8)
XYZxyz(12.4988, 9.6307, 44.9073)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB5 #B59933
analogous
#3390B5 #334FB5 #5833B5
triadic
#334FB5 #B5334F #4FB533
tetradic
#334FB5 #B53390 #B59933 #33B558
square
#334FB5 #B53390 #B59933 #33B558
split-complementary
#334FB5 #B55833 #90B533
monochromatic
#182556 #263A85 #334FB5 #5670CF #8698DD

Accessibility & contrast

On white

7.18
#334FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#334FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB5
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB5#FFFFFF#000000##FFFFFF
##334FB51.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334fb5;
/* rgb */ color: rgb(51, 79, 181);
/* oklch */ color: oklch(46.8% 0.165 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c7fcc',
    500: '#334fb5',
    950: '#000000',
  },
}
SCSS
$custom: #334fb5;
$custom-light: #7c7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb5",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 227.077,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46776,
    "c": 0.16493,
    "h": 267.8
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#334FB5
secondary
#C6B77D
accent
#BF48DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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