#334C81#334C81

#334C81 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.094 H 263.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#334C81
RGBrgb(51, 76, 129)
HSLhsl(221, 43%, 35%)
HSVhsv(221, 60%, 51%)
CMYKcmyk(60.5%, 41.1%, 0%, 49.4%)
CIE-LABlab(32.83, 7.85, -32.80)
CIE-LCHlch(32.83, 33.72, 283.46°)
OKLaboklab(42.35% -0.0101 -0.0931)
OKLCHoklch(42.35% 0.094 263.8)
XYZxyz(7.9108, 7.4570, 21.7871)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C81 #816833
analogous
#337381 #334C81 #413381
triadic
#334C81 #81334C #4C8133
tetradic
#334C81 #813373 #816833 #338141
square
#334C81 #813373 #816833 #338141
split-complementary
#334C81 #814133 #738133
monochromatic
#101829 #223255 #334C81 #4466AD #6A87C4

Accessibility & contrast

On white

8.43
#334C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#334C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C81
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C81#FFFFFF#000000##FFFFFF
##334C811.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355183
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334c81;
/* rgb */ color: rgb(51, 76, 129);
/* oklch */ color: oklch(42.3% 0.094 263.8);
Tailwind
colors: {
  custom: {
    50: '#727da6',
    500: '#334c81',
    950: '#000000',
  },
}
SCSS
$custom: #334c81;
$custom-light: #727da6;
$custom-dark: #000000;
JSON
{
  "hex": "#334c81",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 129
  },
  "hsl": {
    "h": 220.769,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42349,
    "c": 0.09368,
    "h": 263.8
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#334C81
secondary
#AC9564
accent
#AB55D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334C81

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

Preview Lab → · Contrast checker → · Palette generator →

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