#334EBE#334EBE

#334EBE is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.178 H 268.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#334EBE
RGBrgb(51, 78, 190)
HSLhsl(228, 58%, 47%)
HSVhsv(228, 73%, 75%)
CMYKcmyk(73.2%, 58.9%, 0%, 25.5%)
CIE-LABlab(37.61, 29.05, -61.78)
CIE-LCHlch(37.61, 68.27, 295.18°)
OKLaboklab(47.32% -0.0052 -0.1783)
OKLCHoklch(47.32% 0.178 268.3)
XYZxyz(13.3807, 9.8689, 49.9049)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EBE #BEA333
analogous
#3394BE #334EBE #5D33BE
triadic
#334EBE #BE334E #4EBE33
tetradic
#334EBE #BE3394 #BEA333 #33BE5D
square
#334EBE #BE3394 #BEA333 #33BE5D
split-complementary
#334EBE #BE5D33 #94BE33
monochromatic
#19265E #263A8E #334EBE #5B72D3 #8B9CE0

Accessibility & contrast

On white

7.06
#334EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334EBE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EBE#FFFFFF#000000##FFFFFF
##334EBE1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334ebe;
/* rgb */ color: rgb(51, 78, 190);
/* oklch */ color: oklch(47.3% 0.178 268.3);
Tailwind
colors: {
  custom: {
    50: '#7e7fd2',
    500: '#334ebe',
    950: '#000000',
  },
}
SCSS
$custom: #334ebe;
$custom-light: #7e7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ebe",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 228.345,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4732,
    "c": 0.17836,
    "h": 268.3
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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