#334897#334897

#334897 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.132 H 269.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#334897
RGBrgb(51, 72, 151)
HSLhsl(227, 50%, 40%)
HSVhsv(227, 66%, 59%)
CMYKcmyk(66.2%, 52.3%, 0%, 40.8%)
CIE-LABlab(33.08, 18.59, -45.88)
CIE-LCHlch(33.08, 49.51, 292.06°)
OKLaboklab(43% -0.0022 -0.1316)
OKLCHoklch(43% 0.132 269)
XYZxyz(9.2666, 7.5721, 30.2454)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334897 #978233
analogous
#337A97 #334897 #503397
triadic
#334897 #973348 #489733
tetradic
#334897 #97337A #978233 #339750
square
#334897 #97337A #978233 #339750
split-complementary
#334897 #975033 #7A9733
monochromatic
#141C3C #243269 #334897 #4760C1 #7488D0

Accessibility & contrast

On white

8.35
#334897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#334897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334897
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334897#FFFFFF#000000##FFFFFF
##3348971.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334897;
/* rgb */ color: rgb(51, 72, 151);
/* oklch */ color: oklch(43.0% 0.132 269.0);
Tailwind
colors: {
  custom: {
    50: '#767ab6',
    500: '#334897',
    950: '#000000',
  },
}
SCSS
$custom: #334897;
$custom-light: #767ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#334897",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 227.4,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42995,
    "c": 0.13164,
    "h": 269
  },
  "luminance": 0.07573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334897

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

Preview Lab → · Contrast checker → · Palette generator →

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