#334EBD#334EBD

#334EBD is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.177 H 268.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#334EBD
RGBrgb(51, 78, 189)
HSLhsl(228, 58%, 47%)
HSVhsv(228, 73%, 74%)
CMYKcmyk(73%, 58.7%, 0%, 25.9%)
CIE-LABlab(37.53, 28.68, -61.32)
CIE-LCHlch(37.53, 67.70, 295.06°)
OKLaboklab(47.24% -0.0052 -0.1769)
OKLCHoklch(47.24% 0.177 268.3)
XYZxyz(13.2718, 9.8253, 49.3313)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EBD #BDA233
analogous
#3393BD #334EBD #5D33BD
triadic
#334EBD #BD334E #4EBD33
tetradic
#334EBD #BD3393 #BDA233 #33BD5D
square
#334EBD #BD3393 #BDA233 #33BD5D
split-complementary
#334EBD #BD5D33 #93BD33
monochromatic
#19265D #263A8D #334EBD #5B72D3 #8B9BE0

Accessibility & contrast

On white

7.08
#334EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#334EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EBD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EBD#FFFFFF#000000##FFFFFF
##334EBD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334ebd;
/* rgb */ color: rgb(51, 78, 189);
/* oklch */ color: oklch(47.2% 0.177 268.3);
Tailwind
colors: {
  custom: {
    50: '#7e7fd2',
    500: '#334ebd',
    950: '#000000',
  },
}
SCSS
$custom: #334ebd;
$custom-light: #7e7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ebd",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 228.261,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.17702,
    "h": 268.3
  },
  "luminance": 0.09827
}

Semantic roles & 50–950 ramp

primary
#334EBD
secondary
#CABC82
accent
#C347E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #334EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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