#334BAE#334BAE

#334BAE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.160 H 268.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#334BAE
RGBrgb(51, 75, 174)
HSLhsl(228, 55%, 44%)
HSVhsv(228, 71%, 68%)
CMYKcmyk(70.7%, 56.9%, 0%, 31.8%)
CIE-LABlab(35.58, 25.11, -55.64)
CIE-LCHlch(35.58, 61.05, 294.29°)
OKLaboklab(45.41% -0.0033 -0.1603)
OKLCHoklch(45.41% 0.16 268.8)
XYZxyz(11.5187, 8.7908, 41.1259)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BAE #AE9633
analogous
#3389AE #334BAE #5933AE
triadic
#334BAE #AE334B #4BAE33
tetradic
#334BAE #AE3389 #AE9633 #33AE59
square
#334BAE #AE3389 #AE9633 #33AE59
split-complementary
#334BAE #AE5933 #89AE33
monochromatic
#17224F #25377F #334BAE #526ACC #8193DA

Accessibility & contrast

On white

7.61
#334BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BAE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BAE#FFFFFF#000000##FFFFFF
##334BAE1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bae;
/* rgb */ color: rgb(51, 75, 174);
/* oklch */ color: oklch(45.4% 0.160 268.8);
Tailwind
colors: {
  custom: {
    50: '#7b7cc7',
    500: '#334bae',
    950: '#000000',
  },
}
SCSS
$custom: #334bae;
$custom-light: #7b7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#334bae",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 174
  },
  "hsl": {
    "h": 228.293,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45414,
    "c": 0.16032,
    "h": 268.8
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#334BAE
secondary
#C3B579
accent
#C14ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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