#334CAA#334CAA

#334CAA is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.153 H 268.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#334CAA
RGBrgb(51, 76, 170)
HSLhsl(227, 54%, 43%)
HSVhsv(227, 70%, 67%)
CMYKcmyk(70%, 55.3%, 0%, 33.3%)
CIE-LABlab(35.55, 22.97, -53.32)
CIE-LCHlch(35.55, 58.06, 293.31°)
OKLaboklab(45.29% -0.0044 -0.1534)
OKLCHoklch(45.29% 0.154 268.4)
XYZxyz(11.2029, 8.7739, 39.1255)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CAA #AA9133
analogous
#3387AA #334CAA #5533AA
triadic
#334CAA #AA334C #4CAA33
tetradic
#334CAA #AA3387 #AA9133 #33AA55
square
#334CAA #AA3387 #AA9133 #33AA55
split-complementary
#334CAA #AA5533 #87AA33
monochromatic
#17224C #25377B #334CAA #506ACA #7F92D9

Accessibility & contrast

On white

7.62
#334CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#334CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CAA
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CAA#FFFFFF#000000##FFFFFF
##334CAA1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334caa;
/* rgb */ color: rgb(51, 76, 170);
/* oklch */ color: oklch(45.3% 0.153 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7dc4',
    500: '#334caa',
    950: '#000000',
  },
}
SCSS
$custom: #334caa;
$custom-light: #7a7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#334caa",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 170
  },
  "hsl": {
    "h": 227.395,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45294,
    "c": 0.1535,
    "h": 268.4
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

primary
#334CAA
secondary
#C2B277
accent
#BE4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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