#334A79#334A79

#334A79 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.4% C 0.084 H 263.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#334A79
RGBrgb(51, 74, 121)
HSLhsl(220, 41%, 34%)
HSVhsv(220, 58%, 47%)
CMYKcmyk(57.9%, 38.8%, 0%, 52.5%)
CIE-LABlab(31.76, 6.30, -29.51)
CIE-LCHlch(31.76, 30.17, 282.06°)
OKLaboklab(41.38% -0.0096 -0.0835)
OKLCHoklch(41.38% 0.084 263.4)
XYZxyz(7.2640, 6.9813, 19.0502)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A79 #796233
analogous
#336D79 #334A79 #3F3379
triadic
#334A79 #79334A #4A7933
tetradic
#334A79 #79336D #796233 #33793F
square
#334A79 #79336D #796233 #33793F
split-complementary
#334A79 #793F33 #6D7933
monochromatic
#0F1523 #21304E #334A79 #4564A4 #6784BF

Accessibility & contrast

On white

8.76
#334A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#334A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A79
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A79#FFFFFF#000000##FFFFFF
##334A791.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374E7B
Deuteranopia (green-blind)
#2E4878
Tritanopia (blue-blind)
#07545B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334a79;
/* rgb */ color: rgb(51, 74, 121);
/* oklch */ color: oklch(41.4% 0.084 263.4);
Tailwind
colors: {
  custom: {
    50: '#707ca0',
    500: '#334a79',
    950: '#000000',
  },
}
SCSS
$custom: #334a79;
$custom-light: #707ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#334a79",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 121
  },
  "hsl": {
    "h": 220.286,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.08408,
    "h": 263.4
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

primary
#334A79
secondary
#A79061
accent
#A957D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334A79

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

Preview Lab → · Contrast checker → · Palette generator →

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