#334BA7#334BA7

#334BA7 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.151 H 268.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#334BA7
RGBrgb(51, 75, 167)
HSLhsl(228, 53%, 43%)
HSVhsv(228, 69%, 65%)
CMYKcmyk(69.5%, 55.1%, 0%, 34.5%)
CIE-LABlab(35.05, 22.52, -52.32)
CIE-LCHlch(35.05, 56.97, 293.29°)
OKLaboklab(44.85% -0.0037 -0.1505)
OKLCHoklch(44.85% 0.151 268.6)
XYZxyz(10.8540, 8.5249, 37.6252)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA7 #A78F33
analogous
#3385A7 #334BA7 #5533A7
triadic
#334BA7 #A7334B #4BA733
tetradic
#334BA7 #A73385 #A78F33 #33A755
square
#334BA7 #A73385 #A78F33 #33A755
split-complementary
#334BA7 #A75533 #85A733
monochromatic
#162149 #253678 #334BA7 #4E68C9 #7D90D7

Accessibility & contrast

On white

7.76
#334BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#334BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA7
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA7#FFFFFF#000000##FFFFFF
##334BA71.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ba7;
/* rgb */ color: rgb(51, 75, 167);
/* oklch */ color: oklch(44.9% 0.151 268.6);
Tailwind
colors: {
  custom: {
    50: '#797cc2',
    500: '#334ba7',
    950: '#000000',
  },
}
SCSS
$custom: #334ba7;
$custom-light: #797cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba7",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 227.586,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44854,
    "c": 0.15057,
    "h": 268.6
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#334BA7
secondary
#C0B176
accent
#BF4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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