#334DAB#334DAB

#334DAB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.154 H 268.1°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#334DAB
RGBrgb(51, 77, 171)
HSLhsl(227, 54%, 44%)
HSVhsv(227, 70%, 67%)
CMYKcmyk(70.2%, 55%, 0%, 32.9%)
CIE-LABlab(35.89, 22.68, -53.36)
CIE-LCHlch(35.89, 57.98, 293.03°)
OKLaboklab(45.58% -0.0051 -0.1535)
OKLCHoklch(45.58% 0.154 268.1)
XYZxyz(11.3673, 8.9507, 39.6488)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DAB #AB9133
analogous
#3389AB #334DAB #5533AB
triadic
#334DAB #AB334D #4DAB33
tetradic
#334DAB #AB3389 #AB9133 #33AB55
square
#334DAB #AB3389 #AB9133 #33AB55
split-complementary
#334DAB #AB5533 #89AB33
monochromatic
#17234D #25387C #334DAB #506BCB #7F93D9

Accessibility & contrast

On white

7.53
#334DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334DAB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DAB#FFFFFF#000000##FFFFFF
##334DAB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334dab;
/* rgb */ color: rgb(51, 77, 171);
/* oklch */ color: oklch(45.6% 0.154 268.1);
Tailwind
colors: {
  custom: {
    50: '#7a7ec5',
    500: '#334dab',
    950: '#000000',
  },
}
SCSS
$custom: #334dab;
$custom-light: #7a7ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#334dab",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 227,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45577,
    "c": 0.15362,
    "h": 268.1
  },
  "luminance": 0.08952
}

Semantic roles & 50–950 ramp

primary
#334DAB
secondary
#C2B278
accent
#BE4ADD
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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