#334A97#334A97

#334A97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.4% C 0.129 H 268.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#334A97
RGBrgb(51, 74, 151)
HSLhsl(226, 50%, 40%)
HSVhsv(226, 66%, 59%)
CMYKcmyk(66.2%, 51%, 0%, 40.8%)
CIE-LABlab(33.64, 17.26, -44.98)
CIE-LCHlch(33.64, 48.18, 290.99°)
OKLaboklab(43.42% -0.0042 -0.1289)
OKLCHoklch(43.42% 0.129 268.1)
XYZxyz(9.3980, 7.8349, 30.2892)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A97 #978033
analogous
#337C97 #334A97 #4E3397
triadic
#334A97 #97334A #4A9733
tetradic
#334A97 #97337C #978033 #33974E
square
#334A97 #97337C #978033 #33974E
split-complementary
#334A97 #974E33 #7C9733
monochromatic
#141D3C #243469 #334A97 #4763C1 #7489D0

Accessibility & contrast

On white

8.18
#334A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#334A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A97
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A97#FFFFFF#000000##FFFFFF
##334A971.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549A
Deuteranopia (green-blind)
#024B95
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334a97;
/* rgb */ color: rgb(51, 74, 151);
/* oklch */ color: oklch(43.4% 0.129 268.1);
Tailwind
colors: {
  custom: {
    50: '#767cb6',
    500: '#334a97',
    950: '#000000',
  },
}
SCSS
$custom: #334a97;
$custom-light: #767cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#334a97",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 226.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4342,
    "c": 0.129,
    "h": 268.1
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#334A97
secondary
#B8A76D
accent
#B94FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334A97

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

Preview Lab → · Contrast checker → · Palette generator →

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