#334EA7#334EA7

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

Color values

HEX#334EA7
RGBrgb(51, 78, 167)
HSLhsl(226, 53%, 43%)
HSVhsv(226, 69%, 65%)
CMYKcmyk(69.5%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.87, 20.54, -51.00)
CIE-LCHlch(35.87, 54.98, 291.93°)
OKLaboklab(45.47% -0.0063 -0.1466)
OKLCHoklch(45.47% 0.147 267.5)
XYZxyz(11.0623, 8.9415, 37.6946)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EA7 #A78C33
analogous
#3388A7 #334EA7 #5233A7
triadic
#334EA7 #A7334E #4EA733
tetradic
#334EA7 #A73388 #A78C33 #33A752
square
#334EA7 #A73388 #A78C33 #33A752
split-complementary
#334EA7 #A75233 #88A733
monochromatic
#162249 #253878 #334EA7 #4E6BC9 #7D92D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334EA7#FFFFFF#000000##FFFFFF
##334EA71.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)
#125AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ea7;
/* rgb */ color: rgb(51, 78, 167);
/* oklch */ color: oklch(45.5% 0.147 267.5);
Tailwind
colors: {
  custom: {
    50: '#797fc2',
    500: '#334ea7',
    950: '#000000',
  },
}
SCSS
$custom: #334ea7;
$custom-light: #797fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ea7",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 226.034,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45471,
    "c": 0.14673,
    "h": 267.5
  },
  "luminance": 0.08943
}

Semantic roles & 50–950 ramp

primary
#334EA7
secondary
#C0AF76
accent
#BB4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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