#334B8D#334B8D

#334B8D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.113 H 266.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#334B8D
RGBrgb(51, 75, 141)
HSLhsl(224, 47%, 38%)
HSVhsv(224, 64%, 55%)
CMYKcmyk(63.8%, 46.8%, 0%, 44.7%)
CIE-LABlab(33.26, 12.90, -39.49)
CIE-LCHlch(33.26, 41.54, 288.09°)
OKLaboklab(42.92% -0.0066 -0.1128)
OKLCHoklch(42.92% 0.113 266.6)
XYZxyz(8.6874, 7.6583, 26.2145)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B8D #8D7533
analogous
#33788D #334B8D #48338D
triadic
#334B8D #8D334B #4B8D33
tetradic
#334B8D #8D3378 #8D7533 #338D48
square
#334B8D #8D3378 #8D7533 #338D48
split-complementary
#334B8D #8D4833 #788D33
monochromatic
#121B33 #233360 #334B8D #4363BA #6F88CB

Accessibility & contrast

On white

8.29
#334B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#334B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B8D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B8D#FFFFFF#000000##FFFFFF
##334B8D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B538F
Deuteranopia (green-blind)
#1D4A8C
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334b8d;
/* rgb */ color: rgb(51, 75, 141);
/* oklch */ color: oklch(42.9% 0.113 266.6);
Tailwind
colors: {
  custom: {
    50: '#747caf',
    500: '#334b8d',
    950: '#000000',
  },
}
SCSS
$custom: #334b8d;
$custom-light: #747caf;
$custom-dark: #000000;
JSON
{
  "hex": "#334b8d",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 224,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42921,
    "c": 0.11296,
    "h": 266.6
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#334B8D
secondary
#B39F69
accent
#B351D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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