#334FBF#334FBF

#334FBF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.178 H 268.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#334FBF
RGBrgb(51, 79, 191)
HSLhsl(228, 58%, 47%)
HSVhsv(228, 73%, 75%)
CMYKcmyk(73.3%, 58.6%, 0%, 25.1%)
CIE-LABlab(37.94, 28.76, -61.81)
CIE-LCHlch(37.94, 68.18, 294.95°)
OKLaboklab(47.6% -0.0059 -0.1784)
OKLCHoklch(47.6% 0.178 268.1)
XYZxyz(13.5619, 10.0559, 50.5064)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FBF #BFA333
analogous
#3395BF #334FBF #5D33BF
triadic
#334FBF #BF334F #4FBF33
tetradic
#334FBF #BF3395 #BFA333 #33BF5D
square
#334FBF #BF3395 #BFA333 #33BF5D
split-complementary
#334FBF #BF5D33 #95BF33
monochromatic
#19275E #263B8F #334FBF #5C74D3 #8C9DE0

Accessibility & contrast

On white

6.97
#334FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#334FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FBF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FBF#FFFFFF#000000##FFFFFF
##334FBF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fbf;
/* rgb */ color: rgb(51, 79, 191);
/* oklch */ color: oklch(47.6% 0.178 268.1);
Tailwind
colors: {
  custom: {
    50: '#7e80d3',
    500: '#334fbf',
    950: '#000000',
  },
}
SCSS
$custom: #334fbf;
$custom-light: #7e80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#334fbf",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 228,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47595,
    "c": 0.17847,
    "h": 268.1
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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