#334CAE#334CAE

#334CAE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.159 H 268.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#334CAE
RGBrgb(51, 76, 174)
HSLhsl(228, 55%, 44%)
HSVhsv(228, 71%, 68%)
CMYKcmyk(70.7%, 56.3%, 0%, 31.8%)
CIE-LABlab(35.84, 24.45, -55.21)
CIE-LCHlch(35.84, 60.38, 293.89°)
OKLaboklab(45.61% -0.0041 -0.159)
OKLCHoklch(45.61% 0.159 268.5)
XYZxyz(11.5870, 8.9275, 41.1487)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CAE #AE9533
analogous
#338AAE #334CAE #5833AE
triadic
#334CAE #AE334C #4CAE33
tetradic
#334CAE #AE338A #AE9533 #33AE58
square
#334CAE #AE338A #AE9533 #33AE58
split-complementary
#334CAE #AE5833 #8AAE33
monochromatic
#17234F #25377F #334CAE #526BCC #8193DA

Accessibility & contrast

On white

7.54
#334CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#334CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CAE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CAE#FFFFFF#000000##FFFFFF
##334CAE1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334cae;
/* rgb */ color: rgb(51, 76, 174);
/* oklch */ color: oklch(45.6% 0.159 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7dc7',
    500: '#334cae',
    950: '#000000',
  },
}
SCSS
$custom: #334cae;
$custom-light: #7b7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#334cae",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 174
  },
  "hsl": {
    "h": 227.805,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45614,
    "c": 0.15906,
    "h": 268.5
  },
  "luminance": 0.08929
}

Semantic roles & 50–950 ramp

primary
#334CAE
secondary
#C3B479
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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