#334A7D#334A7D

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

Color values

HEX#334A7D
RGBrgb(51, 74, 125)
HSLhsl(221, 42%, 35%)
HSVhsv(221, 59%, 49%)
CMYKcmyk(59.2%, 40.8%, 0%, 51%)
CIE-LABlab(31.99, 7.74, -31.64)
CIE-LCHlch(31.99, 32.57, 283.74°)
OKLaboklab(41.63% -0.0087 -0.0898)
OKLCHoklch(41.63% 0.09 264.5)
XYZxyz(7.5144, 7.0814, 20.3689)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A7D #7D6633
analogous
#336F7D #334A7D #41337D
triadic
#334A7D #7D334A #4A7D33
tetradic
#334A7D #7D336F #7D6633 #337D41
square
#334A7D #7D336F #7D6633 #337D41
split-complementary
#334A7D #7D4133 #6F7D33
monochromatic
#101726 #213052 #334A7D #4564A8 #6984C2

Accessibility & contrast

On white

8.69
#334A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334A7D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A7D#FFFFFF#000000##FFFFFF
##334A7D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354F7F
Deuteranopia (green-blind)
#2B487C
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334a7d;
/* rgb */ color: rgb(51, 74, 125);
/* oklch */ color: oklch(41.6% 0.090 264.5);
Tailwind
colors: {
  custom: {
    50: '#717ca3',
    500: '#334a7d',
    950: '#000000',
  },
}
SCSS
$custom: #334a7d;
$custom-light: #717ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#334a7d",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 125
  },
  "hsl": {
    "h": 221.351,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41629,
    "c": 0.09018,
    "h": 264.5
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#334A7D
secondary
#AA9362
accent
#AB56D2
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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