#334A96#334A96

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

Color values

HEX#334A96
RGBrgb(51, 74, 150)
HSLhsl(226, 49%, 39%)
HSVhsv(226, 66%, 59%)
CMYKcmyk(66%, 50.7%, 0%, 41.2%)
CIE-LABlab(33.57, 16.89, -44.48)
CIE-LCHlch(33.57, 47.58, 290.79°)
OKLaboklab(43.35% -0.0043 -0.1275)
OKLCHoklch(43.35% 0.128 268.1)
XYZxyz(9.3172, 7.8025, 29.8633)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A96 #967F33
analogous
#337C96 #334A96 #4E3396
triadic
#334A96 #96334A #4A9633
tetradic
#334A96 #96337C #967F33 #33964E
square
#334A96 #96337C #967F33 #33964E
split-complementary
#334A96 #964E33 #7C9633
monochromatic
#141D3B #233368 #334A96 #4662C0 #7489D0

Accessibility & contrast

On white

8.20
#334A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#334A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A96
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A96#FFFFFF#000000##FFFFFF
##334A961.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205499
Deuteranopia (green-blind)
#054B94
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334a96;
/* rgb */ color: rgb(51, 74, 150);
/* oklch */ color: oklch(43.3% 0.128 268.1);
Tailwind
colors: {
  custom: {
    50: '#767cb5',
    500: '#334a96',
    950: '#000000',
  },
}
SCSS
$custom: #334a96;
$custom-light: #767cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#334a96",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 150
  },
  "hsl": {
    "h": 226.061,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.12754,
    "h": 268.1
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334A96

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

Preview Lab → · Contrast checker → · Palette generator →

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