#334BB8#334BB8

#334BB8 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.174 H 269.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#334BB8
RGBrgb(51, 75, 184)
HSLhsl(229, 57%, 46%)
HSVhsv(229, 72%, 72%)
CMYKcmyk(72.3%, 59.2%, 0%, 27.8%)
CIE-LABlab(36.36, 28.79, -60.29)
CIE-LCHlch(36.36, 66.81, 295.53°)
OKLaboklab(46.24% -0.0031 -0.1739)
OKLCHoklch(46.24% 0.174 269)
XYZxyz(12.5301, 9.1954, 46.4526)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB8 #B8A033
analogous
#338DB8 #334BB8 #5D33B8
triadic
#334BB8 #B8334B #4BB833
tetradic
#334BB8 #B8338D #B8A033 #33B85D
square
#334BB8 #B8338D #B8A033 #33B85D
split-complementary
#334BB8 #B85D33 #8DB833
monochromatic
#182458 #263788 #334BB8 #586DD1 #8897DE

Accessibility & contrast

On white

7.40
#334BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#334BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB8#FFFFFF#000000##FFFFFF
##334BB81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334bb8;
/* rgb */ color: rgb(51, 75, 184);
/* oklch */ color: oklch(46.2% 0.174 269.0);
Tailwind
colors: {
  custom: {
    50: '#7d7dce',
    500: '#334bb8',
    950: '#000000',
  },
}
SCSS
$custom: #334bb8;
$custom-light: #7d7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb8",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 229.173,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46241,
    "c": 0.17397,
    "h": 269
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#334BB8
secondary
#C8BB7F
accent
#C448E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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