#334FA3#334FA3

#334FA3 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.140 H 266.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#334FA3
RGBrgb(51, 79, 163)
HSLhsl(225, 52%, 42%)
HSVhsv(225, 69%, 64%)
CMYKcmyk(68.7%, 51.5%, 0%, 36.1%)
CIE-LABlab(35.87, 18.39, -48.62)
CIE-LCHlch(35.87, 51.98, 290.72°)
OKLaboklab(45.38% -0.0076 -0.1396)
OKLCHoklch(45.38% 0.14 266.9)
XYZxyz(10.7698, 8.9391, 35.8011)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA3 #A38733
analogous
#3387A3 #334FA3 #4F33A3
triadic
#334FA3 #A3334F #4FA333
tetradic
#334FA3 #A33387 #A38733 #33A34F
square
#334FA3 #A33387 #A38733 #33A34F
split-complementary
#334FA3 #A34F33 #87A333
monochromatic
#162246 #243874 #334FA3 #4C6BC7 #7B91D6

Accessibility & contrast

On white

7.53
#334FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#334FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA3
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA3#FFFFFF#000000##FFFFFF
##334FA31.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334fa3;
/* rgb */ color: rgb(51, 79, 163);
/* oklch */ color: oklch(45.4% 0.140 266.9);
Tailwind
colors: {
  custom: {
    50: '#787fbf',
    500: '#334fa3',
    950: '#000000',
  },
}
SCSS
$custom: #334fa3;
$custom-light: #787fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa3",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 225,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.13977,
    "h": 266.9
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#334FA3
secondary
#BEAC73
accent
#B84CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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