#334E97#334E97

#334E97 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.124 H 266.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#334E97
RGBrgb(51, 78, 151)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 66%, 59%)
CMYKcmyk(66.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.77, 14.59, -43.15)
CIE-LCHlch(34.77, 45.55, 288.68°)
OKLaboklab(44.29% -0.0082 -0.1235)
OKLCHoklch(44.29% 0.124 266.2)
XYZxyz(9.6736, 8.3861, 30.3810)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E97 #977C33
analogous
#338097 #334E97 #4A3397
triadic
#334E97 #97334E #4E9733
tetradic
#334E97 #973380 #977C33 #33974A
square
#334E97 #973380 #977C33 #33974A
split-complementary
#334E97 #974A33 #809733
monochromatic
#141F3C #243669 #334E97 #4767C1 #748DD0

Accessibility & contrast

On white

7.84
#334E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#334E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E97
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E97#FFFFFF#000000##FFFFFF
##334E971.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#144D95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334e97;
/* rgb */ color: rgb(51, 78, 151);
/* oklch */ color: oklch(44.3% 0.124 266.2);
Tailwind
colors: {
  custom: {
    50: '#767fb6',
    500: '#334e97',
    950: '#000000',
  },
}
SCSS
$custom: #334e97;
$custom-light: #767fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#334e97",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 223.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44287,
    "c": 0.12376,
    "h": 266.2
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#334E97
secondary
#B8A46D
accent
#B44FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334E97

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

Preview Lab → · Contrast checker → · Palette generator →

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