#334FAA#334FAA

#334FAA is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.150 H 267.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#334FAA
RGBrgb(51, 79, 170)
HSLhsl(226, 54%, 43%)
HSVhsv(226, 70%, 67%)
CMYKcmyk(70%, 53.5%, 0%, 33.3%)
CIE-LABlab(36.36, 20.99, -52.00)
CIE-LCHlch(36.36, 56.07, 291.98°)
OKLaboklab(45.91% -0.007 -0.1495)
OKLCHoklch(45.91% 0.15 267.3)
XYZxyz(11.4144, 9.1969, 39.1960)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FAA #AA8E33
analogous
#338AAA #334FAA #5233AA
triadic
#334FAA #AA334F #4FAA33
tetradic
#334FAA #AA338A #AA8E33 #33AA52
square
#334FAA #AA338A #AA8E33 #33AA52
split-complementary
#334FAA #AA5233 #8AAA33
monochromatic
#17234C #25397B #334FAA #506DCA #7F94D9

Accessibility & contrast

On white

7.40
#334FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#334FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FAA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FAA#FFFFFF#000000##FFFFFF
##334FAA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105BAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334faa;
/* rgb */ color: rgb(51, 79, 170);
/* oklch */ color: oklch(45.9% 0.150 267.3);
Tailwind
colors: {
  custom: {
    50: '#797fc4',
    500: '#334faa',
    950: '#000000',
  },
}
SCSS
$custom: #334faa;
$custom-light: #797fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#334faa",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 170
  },
  "hsl": {
    "h": 225.882,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45909,
    "c": 0.14967,
    "h": 267.3
  },
  "luminance": 0.09198
}

Semantic roles & 50–950 ramp

primary
#334FAA
secondary
#C2B077
accent
#BB4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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