#334DBF#334DBF

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

Color values

HEX#334DBF
RGBrgb(51, 77, 191)
HSLhsl(229, 58%, 47%)
HSVhsv(229, 73%, 75%)
CMYKcmyk(73.3%, 59.7%, 0%, 25.1%)
CIE-LABlab(37.43, 30.06, -62.65)
CIE-LCHlch(37.43, 69.49, 295.63°)
OKLaboklab(47.21% -0.0044 -0.1808)
OKLCHoklch(47.21% 0.181 268.6)
XYZxyz(13.4198, 9.7717, 50.4590)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DBF #BFA533
analogous
#3393BF #334DBF #5F33BF
triadic
#334DBF #BF334D #4DBF33
tetradic
#334DBF #BF3393 #BFA533 #33BF5F
square
#334DBF #BF3393 #BFA533 #33BF5F
split-complementary
#334DBF #BF5F33 #93BF33
monochromatic
#19265E #263A8F #334DBF #5C72D3 #8C9CE0

Accessibility & contrast

On white

7.11
#334DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#334DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DBF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DBF#FFFFFF#000000##FFFFFF
##334DBF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334dbf;
/* rgb */ color: rgb(51, 77, 191);
/* oklch */ color: oklch(47.2% 0.181 268.6);
Tailwind
colors: {
  custom: {
    50: '#7e7ed3',
    500: '#334dbf',
    950: '#000000',
  },
}
SCSS
$custom: #334dbf;
$custom-light: #7e7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#334dbf",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 191
  },
  "hsl": {
    "h": 228.857,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47213,
    "c": 0.1809,
    "h": 268.6
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

primary
#334DBF
secondary
#CBBD83
accent
#C447E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #334DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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