#334F97#334F97

#334F97 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.122 H 265.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#334F97
RGBrgb(51, 79, 151)
HSLhsl(223, 50%, 40%)
HSVhsv(223, 66%, 59%)
CMYKcmyk(66.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(35.06, 13.93, -42.69)
CIE-LCHlch(35.06, 44.90, 288.07°)
OKLaboklab(44.51% -0.0092 -0.1221)
OKLCHoklch(44.51% 0.122 265.7)
XYZxyz(9.7452, 8.5292, 30.4049)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F97 #977B33
analogous
#338197 #334F97 #493397
triadic
#334F97 #97334F #4F9733
tetradic
#334F97 #973381 #977B33 #339749
square
#334F97 #973381 #977B33 #339749
split-complementary
#334F97 #974933 #819733
monochromatic
#141F3C #243769 #334F97 #4769C1 #748ED0

Accessibility & contrast

On white

7.76
#334F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#334F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F97
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F97#FFFFFF#000000##FFFFFF
##334F971.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#184E96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334f97;
/* rgb */ color: rgb(51, 79, 151);
/* oklch */ color: oklch(44.5% 0.122 265.7);
Tailwind
colors: {
  custom: {
    50: '#767fb6',
    500: '#334f97',
    950: '#000000',
  },
}
SCSS
$custom: #334f97;
$custom-light: #767fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#334f97",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 223.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44506,
    "c": 0.12247,
    "h": 265.7
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#334F97
secondary
#B8A36D
accent
#B24FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F97

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

Preview Lab → · Contrast checker → · Palette generator →

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