#334DAE#334DAE

#334DAE is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.158 H 268.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#334DAE
RGBrgb(51, 77, 174)
HSLhsl(227, 55%, 44%)
HSVhsv(227, 71%, 68%)
CMYKcmyk(70.7%, 55.7%, 0%, 31.8%)
CIE-LABlab(36.11, 23.80, -54.78)
CIE-LCHlch(36.11, 59.72, 293.48°)
OKLaboklab(45.81% -0.005 -0.1577)
OKLCHoklch(45.81% 0.158 268.2)
XYZxyz(11.6565, 9.0664, 41.1719)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DAE #AE9433
analogous
#338BAE #334DAE #5733AE
triadic
#334DAE #AE334D #4DAE33
tetradic
#334DAE #AE338B #AE9433 #33AE57
square
#334DAE #AE338B #AE9433 #33AE57
split-complementary
#334DAE #AE5733 #8BAE33
monochromatic
#17234F #25387F #334DAE #526CCC #8194DA

Accessibility & contrast

On white

7.46
#334DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334DAE
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DAE#FFFFFF#000000##FFFFFF
##334DAE1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334dae;
/* rgb */ color: rgb(51, 77, 174);
/* oklch */ color: oklch(45.8% 0.158 268.2);
Tailwind
colors: {
  custom: {
    50: '#7a7ec7',
    500: '#334dae',
    950: '#000000',
  },
}
SCSS
$custom: #334dae;
$custom-light: #7a7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#334dae",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 174
  },
  "hsl": {
    "h": 227.317,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45814,
    "c": 0.1578,
    "h": 268.2
  },
  "luminance": 0.09068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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