#334EBA#334EBA

#334EBA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.173 H 268.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#334EBA
RGBrgb(51, 78, 186)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 73%, 73%)
CMYKcmyk(72.6%, 58.1%, 0%, 27.1%)
CIE-LABlab(37.29, 27.57, -59.94)
CIE-LCHlch(37.29, 65.98, 294.70°)
OKLaboklab(46.99% -0.0053 -0.1729)
OKLCHoklch(46.99% 0.173 268.3)
XYZxyz(12.9495, 9.6964, 47.6340)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EBA #BA9F33
analogous
#3392BA #334EBA #5C33BA
triadic
#334EBA #BA334E #4EBA33
tetradic
#334EBA #BA3392 #BA9F33 #33BA5C
square
#334EBA #BA3392 #BA9F33 #33BA5C
split-complementary
#334EBA #BA5C33 #92BA33
monochromatic
#19265A #263A8A #334EBA #5971D1 #899ADF

Accessibility & contrast

On white

7.14
#334EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#334EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EBA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EBA#FFFFFF#000000##FFFFFF
##334EBA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334eba;
/* rgb */ color: rgb(51, 78, 186);
/* oklch */ color: oklch(47.0% 0.173 268.3);
Tailwind
colors: {
  custom: {
    50: '#7d7fd0',
    500: '#334eba',
    950: '#000000',
  },
}
SCSS
$custom: #334eba;
$custom-light: #7d7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#334eba",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 228,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.17297,
    "h": 268.3
  },
  "luminance": 0.09698
}

Semantic roles & 50–950 ramp

primary
#334EBA
secondary
#C9BA80
accent
#C248E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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