#334F7B#334F7B

#334F7B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.081 H 259.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#334F7B
RGBrgb(51, 79, 123)
HSLhsl(217, 41%, 34%)
HSVhsv(217, 59%, 48%)
CMYKcmyk(58.5%, 35.8%, 0%, 51.8%)
CIE-LABlab(33.40, 3.73, -28.17)
CIE-LCHlch(33.40, 28.41, 277.54°)
OKLaboklab(42.69% -0.0153 -0.0796)
OKLCHoklch(42.69% 0.081 259.1)
XYZxyz(7.7351, 7.7252, 19.8185)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F7B #7B5F33
analogous
#33737B #334F7B #3B337B
triadic
#334F7B #7B334F #4F7B33
tetradic
#334F7B #7B3373 #7B5F33 #337B3B
square
#334F7B #7B3373 #7B5F33 #337B3B
split-complementary
#334F7B #7B3B33 #737B33
monochromatic
#0F1724 #213350 #334F7B #456BA6 #688AC0

Accessibility & contrast

On white

8.25
#334F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#334F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F7B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F7B#FFFFFF#000000##FFFFFF
##334F7B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527D
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#01595F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334f7b;
/* rgb */ color: rgb(51, 79, 123);
/* oklch */ color: oklch(42.7% 0.081 259.1);
Tailwind
colors: {
  custom: {
    50: '#7180a1',
    500: '#334f7b',
    950: '#000000',
  },
}
SCSS
$custom: #334f7b;
$custom-light: #7180a1;
$custom-dark: #000000;
JSON
{
  "hex": "#334f7b",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 216.667,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42689,
    "c": 0.08102,
    "h": 259.1
  },
  "luminance": 0.07726
}

Semantic roles & 50–950 ramp

primary
#334F7B
secondary
#A88D62
accent
#A257D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #334F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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