#334FB6#334FB6

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

Color values

HEX#334FB6
RGBrgb(51, 79, 182)
HSLhsl(227, 56%, 46%)
HSVhsv(227, 72%, 71%)
CMYKcmyk(72%, 56.6%, 0%, 28.6%)
CIE-LABlab(37.25, 25.44, -57.66)
CIE-LCHlch(37.25, 63.03, 293.81°)
OKLaboklab(46.86% -0.0062 -0.1662)
OKLCHoklch(46.86% 0.166 267.9)
XYZxyz(12.6018, 9.6719, 45.4496)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB6 #B69A33
analogous
#3390B6 #334FB6 #5933B6
triadic
#334FB6 #B6334F #4FB633
tetradic
#334FB6 #B63390 #B69A33 #33B659
square
#334FB6 #B63390 #B69A33 #33B659
split-complementary
#334FB6 #B65933 #90B633
monochromatic
#182556 #263A86 #334FB6 #5670D0 #8699DD

Accessibility & contrast

On white

7.16
#334FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334FB6
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB6#FFFFFF#000000##FFFFFF
##334FB61.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334fb6;
/* rgb */ color: rgb(51, 79, 182);
/* oklch */ color: oklch(46.9% 0.166 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7fcd',
    500: '#334fb6',
    950: '#000000',
  },
}
SCSS
$custom: #334fb6;
$custom-light: #7c7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb6",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 182
  },
  "hsl": {
    "h": 227.176,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46857,
    "c": 0.1663,
    "h": 267.9
  },
  "luminance": 0.09673
}

Semantic roles & 50–950 ramp

primary
#334FB6
secondary
#C7B77E
accent
#BF48E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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