#334FAD#334FAD

#334FAD is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.154 H 267.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#334FAD
RGBrgb(51, 79, 173)
HSLhsl(226, 54%, 44%)
HSVhsv(226, 71%, 68%)
CMYKcmyk(70.5%, 54.3%, 0%, 32.2%)
CIE-LABlab(36.58, 22.11, -53.43)
CIE-LCHlch(36.58, 57.82, 292.48°)
OKLaboklab(46.14% -0.0067 -0.1537)
OKLCHoklch(46.14% 0.154 267.5)
XYZxyz(11.7014, 9.3117, 40.7077)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FAD #AD9133
analogous
#338CAD #334FAD #5433AD
triadic
#334FAD #AD334F #4FAD33
tetradic
#334FAD #AD338C #AD9133 #33AD54
square
#334FAD #AD338C #AD9133 #33AD54
split-complementary
#334FAD #AD5433 #8CAD33
monochromatic
#17244E #25397E #334FAD #516DCC #8195DA

Accessibility & contrast

On white

7.34
#334FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#334FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FAD
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FAD#FFFFFF#000000##FFFFFF
##334FAD1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065CB0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334fad;
/* rgb */ color: rgb(51, 79, 173);
/* oklch */ color: oklch(46.1% 0.154 267.5);
Tailwind
colors: {
  custom: {
    50: '#7a7fc6',
    500: '#334fad',
    950: '#000000',
  },
}
SCSS
$custom: #334fad;
$custom-light: #7a7fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#334fad",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 173
  },
  "hsl": {
    "h": 226.23,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46142,
    "c": 0.15387,
    "h": 267.5
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#334FAD
secondary
#C3B279
accent
#BC4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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