#334EB6#334EB6

#334EB6 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.168 H 268.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#334EB6
RGBrgb(51, 78, 182)
HSLhsl(228, 56%, 46%)
HSVhsv(228, 72%, 71%)
CMYKcmyk(72%, 57.1%, 0%, 28.6%)
CIE-LABlab(36.98, 26.10, -58.09)
CIE-LCHlch(36.98, 63.69, 294.19°)
OKLaboklab(46.66% -0.0054 -0.1674)
OKLCHoklch(46.66% 0.168 268.2)
XYZxyz(12.5302, 9.5287, 45.4258)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB6 #B69B33
analogous
#338FB6 #334EB6 #5A33B6
triadic
#334EB6 #B6334E #4EB633
tetradic
#334EB6 #B6338F #B69B33 #33B65A
square
#334EB6 #B6338F #B69B33 #33B65A
split-complementary
#334EB6 #B65A33 #8FB633
monochromatic
#182556 #263A86 #334EB6 #566FD0 #8698DD

Accessibility & contrast

On white

7.23
#334EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#334EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB6
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB6#FFFFFF#000000##FFFFFF
##334EB61.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334eb6;
/* rgb */ color: rgb(51, 78, 182);
/* oklch */ color: oklch(46.7% 0.168 268.2);
Tailwind
colors: {
  custom: {
    50: '#7c7fcd',
    500: '#334eb6',
    950: '#000000',
  },
}
SCSS
$custom: #334eb6;
$custom-light: #7c7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb6",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 227.634,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46659,
    "c": 0.16754,
    "h": 268.2
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#334EB6
secondary
#C7B87E
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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