#334797#334797

#334797 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.133 H 269.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#334797
RGBrgb(51, 71, 151)
HSLhsl(228, 50%, 40%)
HSVhsv(228, 66%, 59%)
CMYKcmyk(66.2%, 53%, 0%, 40.8%)
CIE-LABlab(32.80, 19.26, -46.33)
CIE-LCHlch(32.80, 50.18, 292.58°)
OKLaboklab(42.78% -0.0012 -0.133)
OKLCHoklch(42.78% 0.133 269.5)
XYZxyz(9.2025, 7.4438, 30.2240)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334797 #978333
analogous
#337997 #334797 #513397
triadic
#334797 #973347 #479733
tetradic
#334797 #973379 #978333 #339751
square
#334797 #973379 #978333 #339751
split-complementary
#334797 #975133 #799733
monochromatic
#141C3C #243169 #334797 #475FC1 #7487D0

Accessibility & contrast

On white

8.44
#334797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#334797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334797
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334797#FFFFFF#000000##FFFFFF
##3347971.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334797;
/* rgb */ color: rgb(51, 71, 151);
/* oklch */ color: oklch(42.8% 0.133 269.5);
Tailwind
colors: {
  custom: {
    50: '#7679b6',
    500: '#334797',
    950: '#000000',
  },
}
SCSS
$custom: #334797;
$custom-light: #7679b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334797",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 228,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42784,
    "c": 0.13297,
    "h": 269.5
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#334797
secondary
#B8A96D
accent
#BD4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334797

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

Preview Lab → · Contrast checker → · Palette generator →

#334797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva