#334B79#334B79

#334B79 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.6% C 0.083 H 262.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#334B79
RGBrgb(51, 75, 121)
HSLhsl(219, 41%, 34%)
HSVhsv(219, 58%, 47%)
CMYKcmyk(57.9%, 38%, 0%, 52.5%)
CIE-LABlab(32.07, 5.64, -29.03)
CIE-LCHlch(32.07, 29.57, 281.00°)
OKLaboklab(41.62% -0.0109 -0.0821)
OKLCHoklch(41.62% 0.083 262.5)
XYZxyz(7.3313, 7.1159, 19.0726)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B79 #796133
analogous
#336E79 #334B79 #3E3379
triadic
#334B79 #79334B #4B7933
tetradic
#334B79 #79336E #796133 #33793E
square
#334B79 #79336E #796133 #33793E
split-complementary
#334B79 #793E33 #6E7933
monochromatic
#0F1623 #21304E #334B79 #4566A4 #6785BF

Accessibility & contrast

On white

8.67
#334B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#334B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B79
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B79#FFFFFF#000000##FFFFFF
##334B791.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384F7B
Deuteranopia (green-blind)
#304878
Tritanopia (blue-blind)
#07555C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334b79;
/* rgb */ color: rgb(51, 75, 121);
/* oklch */ color: oklch(41.6% 0.083 262.5);
Tailwind
colors: {
  custom: {
    50: '#707da0',
    500: '#334b79',
    950: '#000000',
  },
}
SCSS
$custom: #334b79;
$custom-light: #707da0;
$custom-dark: #000000;
JSON
{
  "hex": "#334b79",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 121
  },
  "hsl": {
    "h": 219.429,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41615,
    "c": 0.08283,
    "h": 262.5
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#334B79
secondary
#A78F61
accent
#A757D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334B79

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

Preview Lab → · Contrast checker → · Palette generator →

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