#334BB4#334BB4

#334BB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.169 H 268.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#334BB4
RGBrgb(51, 75, 180)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 71%)
CMYKcmyk(71.7%, 58.3%, 0%, 29.4%)
CIE-LABlab(36.04, 27.32, -58.44)
CIE-LCHlch(36.04, 64.52, 295.06°)
OKLaboklab(45.91% -0.0031 -0.1685)
OKLCHoklch(45.91% 0.169 268.9)
XYZxyz(12.1167, 9.0300, 44.2756)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB4 #B49C33
analogous
#338CB4 #334BB4 #5B33B4
triadic
#334BB4 #B4334B #4BB433
tetradic
#334BB4 #B4338C #B49C33 #33B45B
square
#334BB4 #B4338C #B49C33 #33B45B
split-complementary
#334BB4 #B45B33 #8CB433
monochromatic
#182355 #253784 #334BB4 #556CCF #8595DC

Accessibility & contrast

On white

7.48
#334BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#334BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB4#FFFFFF#000000##FFFFFF
##334BB41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334bb4;
/* rgb */ color: rgb(51, 75, 180);
/* oklch */ color: oklch(45.9% 0.169 268.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dcb',
    500: '#334bb4',
    950: '#000000',
  },
}
SCSS
$custom: #334bb4;
$custom-light: #7c7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb4",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 228.837,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.16855,
    "h": 268.9
  },
  "luminance": 0.09031
}

Semantic roles & 50–950 ramp

primary
#334BB4
secondary
#C6B87D
accent
#C349DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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