#334F7C#334F7C

#334F7C is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.7% C 0.083 H 259.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#334F7C
RGBrgb(51, 79, 124)
HSLhsl(217, 42%, 34%)
HSVhsv(217, 59%, 49%)
CMYKcmyk(58.9%, 36.3%, 0%, 51.4%)
CIE-LABlab(33.46, 4.08, -28.70)
CIE-LCHlch(33.46, 28.99, 278.10°)
OKLaboklab(42.75% -0.015 -0.0811)
OKLCHoklch(42.75% 0.083 259.5)
XYZxyz(7.7981, 7.7504, 20.1499)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F7C #7C6033
analogous
#33747C #334F7C #3C337C
triadic
#334F7C #7C334F #4F7C33
tetradic
#334F7C #7C3374 #7C6033 #337C3C
square
#334F7C #7C3374 #7C6033 #337C3C
split-complementary
#334F7C #7C3C33 #747C33
monochromatic
#0F1825 #213351 #334F7C #456BA7 #688AC1

Accessibility & contrast

On white

8.23
#334F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334F7C
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F7C#FFFFFF#000000##FFFFFF
##334F7C1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527E
Deuteranopia (green-blind)
#334C7B
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334f7c;
/* rgb */ color: rgb(51, 79, 124);
/* oklch */ color: oklch(42.7% 0.083 259.5);
Tailwind
colors: {
  custom: {
    50: '#7180a2',
    500: '#334f7c',
    950: '#000000',
  },
}
SCSS
$custom: #334f7c;
$custom-light: #7180a2;
$custom-dark: #000000;
JSON
{
  "hex": "#334f7c",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 216.986,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42748,
    "c": 0.08251,
    "h": 259.5
  },
  "luminance": 0.07751
}

Semantic roles & 50–950 ramp

primary
#334F7C
secondary
#A98E62
accent
#A256D2
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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