#334EB2#334EB2

#334EB2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.162 H 268.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#334EB2
RGBrgb(51, 78, 178)
HSLhsl(227, 55%, 45%)
HSVhsv(227, 71%, 70%)
CMYKcmyk(71.3%, 56.2%, 0%, 30.2%)
CIE-LABlab(36.68, 24.62, -56.23)
CIE-LCHlch(36.68, 61.38, 293.65°)
OKLaboklab(46.34% -0.0056 -0.162)
OKLCHoklch(46.34% 0.162 268)
XYZxyz(12.1227, 9.3657, 43.2797)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB2 #B29733
analogous
#338EB2 #334EB2 #5733B2
triadic
#334EB2 #B2334E #4EB233
tetradic
#334EB2 #B2338E #B29733 #33B257
square
#334EB2 #B2338E #B29733 #33B257
split-complementary
#334EB2 #B25733 #8EB233
monochromatic
#182453 #253982 #334EB2 #546ECE #8496DC

Accessibility & contrast

On white

7.31
#334EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#334EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB2
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB2#FFFFFF#000000##FFFFFF
##334EB21.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334eb2;
/* rgb */ color: rgb(51, 78, 178);
/* oklch */ color: oklch(46.3% 0.162 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7fca',
    500: '#334eb2',
    950: '#000000',
  },
}
SCSS
$custom: #334eb2;
$custom-light: #7b7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb2",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 227.244,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46335,
    "c": 0.16206,
    "h": 268
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#334EB2
secondary
#C5B67C
accent
#BF49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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