#334CAF#334CAF

#334CAF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.160 H 268.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#334CAF
RGBrgb(51, 76, 175)
HSLhsl(228, 55%, 44%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(70.9%, 56.6%, 0%, 31.4%)
CIE-LABlab(35.92, 24.82, -55.68)
CIE-LCHlch(35.92, 60.96, 294.03°)
OKLaboklab(45.69% -0.0041 -0.1604)
OKLCHoklch(45.69% 0.16 268.5)
XYZxyz(11.6849, 8.9667, 41.6641)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CAF #AF9633
analogous
#338AAF #334CAF #5833AF
triadic
#334CAF #AF334C #4CAF33
tetradic
#334CAF #AF338A #AF9633 #33AF58
square
#334CAF #AF338A #AF9633 #33AF58
split-complementary
#334CAF #AF5833 #8AAF33
monochromatic
#172350 #253780 #334CAF #526BCD #8294DB

Accessibility & contrast

On white

7.52
#334CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334CAF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CAF#FFFFFF#000000##FFFFFF
##334CAF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334caf;
/* rgb */ color: rgb(51, 76, 175);
/* oklch */ color: oklch(45.7% 0.160 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7dc8',
    500: '#334caf',
    950: '#000000',
  },
}
SCSS
$custom: #334caf;
$custom-light: #7b7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334caf",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 227.903,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45694,
    "c": 0.16044,
    "h": 268.5
  },
  "luminance": 0.08968
}

Semantic roles & 50–950 ramp

primary
#334CAF
secondary
#C4B57A
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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