#334E7C#334E7C

#334E7C is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.084 H 260.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#334E7C
RGBrgb(51, 78, 124)
HSLhsl(218, 42%, 34%)
HSVhsv(218, 59%, 49%)
CMYKcmyk(58.9%, 37.1%, 0%, 51.4%)
CIE-LABlab(33.15, 4.74, -29.18)
CIE-LCHlch(33.15, 29.57, 279.22°)
OKLaboklab(42.51% -0.0138 -0.0825)
OKLCHoklch(42.51% 0.084 260.5)
XYZxyz(7.7265, 7.6072, 20.1260)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E7C #7C6133
analogous
#33737C #334E7C #3D337C
triadic
#334E7C #7C334E #4E7C33
tetradic
#334E7C #7C3373 #7C6133 #337C3D
square
#334E7C #7C3373 #7C6133 #337C3D
split-complementary
#334E7C #7C3D33 #737C33
monochromatic
#0F1725 #213351 #334E7C #4569A7 #6889C1

Accessibility & contrast

On white

8.33
#334E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#334E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E7C
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E7C#FFFFFF#000000##FFFFFF
##334E7C1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527E
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334e7c;
/* rgb */ color: rgb(51, 78, 124);
/* oklch */ color: oklch(42.5% 0.084 260.5);
Tailwind
colors: {
  custom: {
    50: '#717fa2',
    500: '#334e7c',
    950: '#000000',
  },
}
SCSS
$custom: #334e7c;
$custom-light: #717fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#334e7c",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 217.808,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.08368,
    "h": 260.5
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#334E7C
secondary
#A98F62
accent
#A456D2
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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