#334CAC#334CAC

#334CAC is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.156 H 268.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#334CAC
RGBrgb(51, 76, 172)
HSLhsl(228, 54%, 44%)
HSVhsv(228, 70%, 67%)
CMYKcmyk(70.3%, 55.8%, 0%, 32.5%)
CIE-LABlab(35.69, 23.71, -54.27)
CIE-LCHlch(35.69, 59.22, 293.61°)
OKLaboklab(45.45% -0.0042 -0.1562)
OKLCHoklch(45.45% 0.156 268.4)
XYZxyz(11.3935, 8.8501, 40.1295)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CAC #AC9333
analogous
#3388AC #334CAC #5633AC
triadic
#334CAC #AC334C #4CAC33
tetradic
#334CAC #AC3388 #AC9333 #33AC56
square
#334CAC #AC3388 #AC9333 #33AC56
split-complementary
#334CAC #AC5633 #88AC33
monochromatic
#17224E #25377D #334CAC #516ACB #8092D9

Accessibility & contrast

On white

7.58
#334CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CAC
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CAC#FFFFFF#000000##FFFFFF
##334CAC1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334cac;
/* rgb */ color: rgb(51, 76, 172);
/* oklch */ color: oklch(45.5% 0.156 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dc5',
    500: '#334cac',
    950: '#000000',
  },
}
SCSS
$custom: #334cac;
$custom-light: #7a7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#334cac",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 227.603,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45453,
    "c": 0.15629,
    "h": 268.4
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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