#334AAE#334AAE

#334AAE is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.162 H 269.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#334AAE
RGBrgb(51, 74, 174)
HSLhsl(229, 55%, 44%)
HSVhsv(229, 71%, 68%)
CMYKcmyk(70.7%, 57.5%, 0%, 31.8%)
CIE-LABlab(35.31, 25.77, -56.07)
CIE-LCHlch(35.31, 61.71, 294.68°)
OKLaboklab(45.22% -0.0025 -0.1616)
OKLCHoklch(45.22% 0.162 269.1)
XYZxyz(11.4514, 8.6562, 41.1035)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AAE #AE9733
analogous
#3388AE #334AAE #5933AE
triadic
#334AAE #AE334A #4AAE33
tetradic
#334AAE #AE3388 #AE9733 #33AE59
square
#334AAE #AE3388 #AE9733 #33AE59
split-complementary
#334AAE #AE5933 #88AE33
monochromatic
#17224F #25367F #334AAE #5269CC #8192DA

Accessibility & contrast

On white

7.69
#334AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#334AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AAE
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AAE#FFFFFF#000000##FFFFFF
##334AAE1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334aae;
/* rgb */ color: rgb(51, 74, 174);
/* oklch */ color: oklch(45.2% 0.162 269.1);
Tailwind
colors: {
  custom: {
    50: '#7b7cc7',
    500: '#334aae',
    950: '#000000',
  },
}
SCSS
$custom: #334aae;
$custom-light: #7b7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#334aae",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 174
  },
  "hsl": {
    "h": 228.78,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45216,
    "c": 0.16159,
    "h": 269.1
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#334AAE
secondary
#C3B679
accent
#C24ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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