#334EA9#334EA9

#334EA9 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.150 H 267.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#334EA9
RGBrgb(51, 78, 169)
HSLhsl(226, 54%, 43%)
HSVhsv(226, 70%, 66%)
CMYKcmyk(69.8%, 53.8%, 0%, 33.7%)
CIE-LABlab(36.02, 21.28, -51.96)
CIE-LCHlch(36.02, 56.15, 292.27°)
OKLaboklab(45.63% -0.0062 -0.1494)
OKLCHoklch(45.63% 0.15 267.6)
XYZxyz(11.2486, 9.0160, 38.6759)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EA9 #A98E33
analogous
#3389A9 #334EA9 #5333A9
triadic
#334EA9 #A9334E #4EA933
tetradic
#334EA9 #A93389 #A98E33 #33A953
square
#334EA9 #A93389 #A98E33 #33A953
split-complementary
#334EA9 #A95333 #89A933
monochromatic
#17234B #25387A #334EA9 #4F6BCA #7E93D8

Accessibility & contrast

On white

7.49
#334EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#334EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EA9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EA9#FFFFFF#000000##FFFFFF
##334EA91.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAC
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334ea9;
/* rgb */ color: rgb(51, 78, 169);
/* oklch */ color: oklch(45.6% 0.150 267.6);
Tailwind
colors: {
  custom: {
    50: '#797fc3',
    500: '#334ea9',
    950: '#000000',
  },
}
SCSS
$custom: #334ea9;
$custom-light: #797fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#334ea9",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 226.271,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45625,
    "c": 0.14954,
    "h": 267.6
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#334EA9
secondary
#C1B077
accent
#BC4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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