#334FBE#334FBE

#334FBE is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.177 H 268.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#334FBE
RGBrgb(51, 79, 190)
HSLhsl(228, 58%, 47%)
HSVhsv(228, 73%, 75%)
CMYKcmyk(73.2%, 58.4%, 0%, 25.5%)
CIE-LABlab(37.86, 28.40, -61.36)
CIE-LCHlch(37.86, 67.61, 294.83°)
OKLaboklab(47.51% -0.0059 -0.177)
OKLCHoklch(47.51% 0.177 268.1)
XYZxyz(13.4523, 10.0121, 49.9288)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FBE #BEA233
analogous
#3394BE #334FBE #5D33BE
triadic
#334FBE #BE334F #4FBE33
tetradic
#334FBE #BE3394 #BEA233 #33BE5D
square
#334FBE #BE3394 #BEA233 #33BE5D
split-complementary
#334FBE #BE5D33 #94BE33
monochromatic
#19275E #263B8E #334FBE #5B73D3 #8B9CE0

Accessibility & contrast

On white

6.99
#334FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#334FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FBE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FBE#FFFFFF#000000##FFFFFF
##334FBE1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334fbe;
/* rgb */ color: rgb(51, 79, 190);
/* oklch */ color: oklch(47.5% 0.177 268.1);
Tailwind
colors: {
  custom: {
    50: '#7e80d2',
    500: '#334fbe',
    950: '#000000',
  },
}
SCSS
$custom: #334fbe;
$custom-light: #7e80d2;
$custom-dark: #000000;
JSON
{
  "hex": "#334fbe",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 227.914,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47512,
    "c": 0.17713,
    "h": 268.1
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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