#334B97#334B97

#334B97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.128 H 267.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#334B97
RGBrgb(51, 75, 151)
HSLhsl(226, 50%, 40%)
HSVhsv(226, 66%, 59%)
CMYKcmyk(66.2%, 50.3%, 0%, 40.8%)
CIE-LABlab(33.92, 16.59, -44.52)
CIE-LCHlch(33.92, 47.51, 290.44°)
OKLaboklab(43.64% -0.0052 -0.1276)
OKLCHoklch(43.64% 0.128 267.7)
XYZxyz(9.4653, 7.9695, 30.3116)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B97 #977F33
analogous
#337D97 #334B97 #4D3397
triadic
#334B97 #97334B #4B9733
tetradic
#334B97 #97337D #977F33 #33974D
square
#334B97 #97337D #977F33 #33974D
split-complementary
#334B97 #974D33 #7D9733
monochromatic
#141E3C #243469 #334B97 #4764C1 #748AD0

Accessibility & contrast

On white

8.10
#334B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#334B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B97
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B97#FFFFFF#000000##FFFFFF
##334B971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#074B95
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334b97;
/* rgb */ color: rgb(51, 75, 151);
/* oklch */ color: oklch(43.6% 0.128 267.7);
Tailwind
colors: {
  custom: {
    50: '#767cb6',
    500: '#334b97',
    950: '#000000',
  },
}
SCSS
$custom: #334b97;
$custom-light: #767cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#334b97",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 225.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43635,
    "c": 0.12768,
    "h": 267.7
  },
  "luminance": 0.0797
}

Semantic roles & 50–950 ramp

primary
#334B97
secondary
#B8A66D
accent
#B84FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334B97

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

Preview Lab → · Contrast checker → · Palette generator →

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