#334DAF#334DAF

#334DAF is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.159 H 268.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#334DAF
RGBrgb(51, 77, 175)
HSLhsl(227, 55%, 44%)
HSVhsv(227, 71%, 69%)
CMYKcmyk(70.9%, 56%, 0%, 31.4%)
CIE-LABlab(36.19, 24.17, -55.25)
CIE-LCHlch(36.19, 60.30, 293.63°)
OKLaboklab(45.89% -0.0049 -0.1591)
OKLCHoklch(45.89% 0.159 268.2)
XYZxyz(11.7543, 9.1055, 41.6872)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DAF #AF9533
analogous
#338BAF #334DAF #5733AF
triadic
#334DAF #AF334D #4DAF33
tetradic
#334DAF #AF338B #AF9533 #33AF57
square
#334DAF #AF338B #AF9533 #33AF57
split-complementary
#334DAF #AF5733 #8BAF33
monochromatic
#172350 #253880 #334DAF #526CCD #8294DB

Accessibility & contrast

On white

7.44
#334DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#334DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DAF
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DAF#FFFFFF#000000##FFFFFF
##334DAF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334daf;
/* rgb */ color: rgb(51, 77, 175);
/* oklch */ color: oklch(45.9% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#7b7ec8',
    500: '#334daf',
    950: '#000000',
  },
}
SCSS
$custom: #334daf;
$custom-light: #7b7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#334daf",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 227.419,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45894,
    "c": 0.15918,
    "h": 268.2
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#334DAF
secondary
#C4B47A
accent
#BF4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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