#334BAD#334BAD

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

Color values

HEX#334BAD
RGBrgb(51, 75, 173)
HSLhsl(228, 54%, 44%)
HSVhsv(228, 71%, 68%)
CMYKcmyk(70.5%, 56.6%, 0%, 32.2%)
CIE-LABlab(35.50, 24.74, -55.17)
CIE-LCHlch(35.50, 60.47, 294.15°)
OKLaboklab(45.33% -0.0034 -0.1589)
OKLCHoklch(45.33% 0.159 268.8)
XYZxyz(11.4215, 8.7520, 40.6144)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BAD #AD9533
analogous
#3388AD #334BAD #5833AD
triadic
#334BAD #AD334B #4BAD33
tetradic
#334BAD #AD3388 #AD9533 #33AD58
square
#334BAD #AD3388 #AD9533 #33AD58
split-complementary
#334BAD #AD5833 #88AD33
monochromatic
#17224E #25377E #334BAD #5169CC #8192DA

Accessibility & contrast

On white

7.63
#334BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334BAD
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BAD#FFFFFF#000000##FFFFFF
##334BAD1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bad;
/* rgb */ color: rgb(51, 75, 173);
/* oklch */ color: oklch(45.3% 0.159 268.8);
Tailwind
colors: {
  custom: {
    50: '#7a7cc6',
    500: '#334bad',
    950: '#000000',
  },
}
SCSS
$custom: #334bad;
$custom-light: #7a7cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#334bad",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 173
  },
  "hsl": {
    "h": 228.197,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45333,
    "c": 0.15895,
    "h": 268.8
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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