#334DBB#334DBB

#334DBB is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.176 H 268.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#334DBB
RGBrgb(51, 77, 187)
HSLhsl(229, 57%, 47%)
HSVhsv(229, 73%, 73%)
CMYKcmyk(72.7%, 58.8%, 0%, 26.7%)
CIE-LABlab(37.11, 28.59, -60.83)
CIE-LCHlch(37.11, 67.21, 295.18°)
OKLaboklab(46.88% -0.0045 -0.1755)
OKLCHoklch(46.88% 0.176 268.5)
XYZxyz(12.9857, 9.5981, 48.1723)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DBB #BBA133
analogous
#3391BB #334DBB #5D33BB
triadic
#334DBB #BB334D #4DBB33
tetradic
#334DBB #BB3391 #BBA133 #33BB5D
square
#334DBB #BB3391 #BBA133 #33BB5D
split-complementary
#334DBB #BB5D33 #91BB33
monochromatic
#19255B #26398B #334DBB #5970D2 #899ADF

Accessibility & contrast

On white

7.19
#334DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#334DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DBB
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DBB#FFFFFF#000000##FFFFFF
##334DBB1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334dbb;
/* rgb */ color: rgb(51, 77, 187);
/* oklch */ color: oklch(46.9% 0.176 268.5);
Tailwind
colors: {
  custom: {
    50: '#7d7ed0',
    500: '#334dbb',
    950: '#000000',
  },
}
SCSS
$custom: #334dbb;
$custom-light: #7d7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#334dbb",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 187
  },
  "hsl": {
    "h": 228.529,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46877,
    "c": 0.17555,
    "h": 268.5
  },
  "luminance": 0.09599
}

Semantic roles & 50–950 ramp

primary
#334DBB
secondary
#C9BB81
accent
#C347E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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