#334EAE#334EAE

#334EAE is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.157 H 267.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#334EAE
RGBrgb(51, 78, 174)
HSLhsl(227, 55%, 44%)
HSVhsv(227, 71%, 68%)
CMYKcmyk(70.7%, 55.2%, 0%, 31.8%)
CIE-LABlab(36.38, 23.14, -54.34)
CIE-LCHlch(36.38, 59.06, 293.06°)
OKLaboklab(46.02% -0.0058 -0.1564)
OKLCHoklch(46.02% 0.157 267.9)
XYZxyz(11.7270, 9.2074, 41.1954)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EAE #AE9333
analogous
#338CAE #334EAE #5533AE
triadic
#334EAE #AE334E #4EAE33
tetradic
#334EAE #AE338C #AE9333 #33AE55
square
#334EAE #AE338C #AE9333 #33AE55
split-complementary
#334EAE #AE5533 #8CAE33
monochromatic
#17244F #25397F #334EAE #526DCC #8195DA

Accessibility & contrast

On white

7.39
#334EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334EAE
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EAE#FFFFFF#000000##FFFFFF
##334EAE1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334eae;
/* rgb */ color: rgb(51, 78, 174);
/* oklch */ color: oklch(46.0% 0.157 267.9);
Tailwind
colors: {
  custom: {
    50: '#7a7fc7',
    500: '#334eae',
    950: '#000000',
  },
}
SCSS
$custom: #334eae;
$custom-light: #7a7fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#334eae",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 226.829,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46017,
    "c": 0.15653,
    "h": 267.9
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#334EAE
secondary
#C3B379
accent
#BD4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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