#334EA6#334EA6

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

Color values

HEX#334EA6
RGBrgb(51, 78, 166)
HSLhsl(226, 53%, 43%)
HSVhsv(226, 69%, 65%)
CMYKcmyk(69.3%, 53%, 0%, 34.9%)
CIE-LABlab(35.80, 20.17, -50.52)
CIE-LCHlch(35.80, 54.39, 291.76°)
OKLaboklab(45.39% -0.0064 -0.1452)
OKLCHoklch(45.39% 0.145 267.5)
XYZxyz(10.9702, 8.9047, 37.2096)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EA6 #A68B33
analogous
#3387A6 #334EA6 #5233A6
triadic
#334EA6 #A6334E #4EA633
tetradic
#334EA6 #A63387 #A68B33 #33A652
square
#334EA6 #A63387 #A68B33 #33A652
split-complementary
#334EA6 #A65233 #87A633
monochromatic
#162248 #253877 #334EA6 #4E6BC9 #7C92D7

Accessibility & contrast

On white

7.55
#334EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#334EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EA6
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EA6#FFFFFF#000000##FFFFFF
##334EA61.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ea6;
/* rgb */ color: rgb(51, 78, 166);
/* oklch */ color: oklch(45.4% 0.145 267.5);
Tailwind
colors: {
  custom: {
    50: '#797fc1',
    500: '#334ea6',
    950: '#000000',
  },
}
SCSS
$custom: #334ea6;
$custom-light: #797fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#334ea6",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 225.913,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45394,
    "c": 0.14531,
    "h": 267.5
  },
  "luminance": 0.08906
}

Semantic roles & 50–950 ramp

primary
#334EA6
secondary
#C0AE75
accent
#BA4BDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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