#334FA7#334FA7

#334FA7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.145 H 267.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#334FA7
RGBrgb(51, 79, 167)
HSLhsl(226, 53%, 43%)
HSVhsv(226, 69%, 65%)
CMYKcmyk(69.5%, 52.7%, 0%, 34.5%)
CIE-LABlab(36.15, 19.88, -50.55)
CIE-LCHlch(36.15, 54.32, 291.46°)
OKLaboklab(45.68% -0.0072 -0.1453)
OKLCHoklch(45.68% 0.145 267.2)
XYZxyz(11.1339, 9.0847, 37.7185)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA7 #A78B33
analogous
#3389A7 #334FA7 #5133A7
triadic
#334FA7 #A7334F #4FA733
tetradic
#334FA7 #A73389 #A78B33 #33A751
square
#334FA7 #A73389 #A78B33 #33A751
split-complementary
#334FA7 #A75133 #89A733
monochromatic
#162349 #253978 #334FA7 #4E6CC9 #7D93D7

Accessibility & contrast

On white

7.45
#334FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334FA7
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA7#FFFFFF#000000##FFFFFF
##334FA71.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334fa7;
/* rgb */ color: rgb(51, 79, 167);
/* oklch */ color: oklch(45.7% 0.145 267.2);
Tailwind
colors: {
  custom: {
    50: '#797fc2',
    500: '#334fa7',
    950: '#000000',
  },
}
SCSS
$custom: #334fa7;
$custom-light: #797fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa7",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 225.517,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.14544,
    "h": 267.2
  },
  "luminance": 0.09086
}

Semantic roles & 50–950 ramp

primary
#334FA7
secondary
#C0AE76
accent
#BA4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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