#334EB5#334EB5

#334EB5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.166 H 268.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#334EB5
RGBrgb(51, 78, 181)
HSLhsl(228, 56%, 45%)
HSVhsv(228, 72%, 71%)
CMYKcmyk(71.8%, 56.9%, 0%, 29%)
CIE-LABlab(36.91, 25.73, -57.63)
CIE-LCHlch(36.91, 63.11, 294.06°)
OKLaboklab(46.58% -0.0054 -0.1661)
OKLCHoklch(46.58% 0.166 268.1)
XYZxyz(12.4272, 9.4875, 44.8834)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB5 #B59A33
analogous
#338FB5 #334EB5 #5933B5
triadic
#334EB5 #B5334E #4EB533
tetradic
#334EB5 #B5338F #B59A33 #33B559
square
#334EB5 #B5338F #B59A33 #33B559
split-complementary
#334EB5 #B55933 #8FB533
monochromatic
#182556 #263985 #334EB5 #566FCF #8698DD

Accessibility & contrast

On white

7.25
#334EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB5
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB5#FFFFFF#000000##FFFFFF
##334EB51.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334eb5;
/* rgb */ color: rgb(51, 78, 181);
/* oklch */ color: oklch(46.6% 0.166 268.1);
Tailwind
colors: {
  custom: {
    50: '#7c7fcc',
    500: '#334eb5',
    950: '#000000',
  },
}
SCSS
$custom: #334eb5;
$custom-light: #7c7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb5",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 227.538,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46577,
    "c": 0.16618,
    "h": 268.1
  },
  "luminance": 0.09489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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