#334E81#334E81

#334E81 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.091 H 262.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#334E81
RGBrgb(51, 78, 129)
HSLhsl(219, 43%, 35%)
HSVhsv(219, 60%, 51%)
CMYKcmyk(60.5%, 39.5%, 0%, 49.4%)
CIE-LABlab(33.43, 6.53, -31.84)
CIE-LCHlch(33.43, 32.50, 281.59°)
OKLaboklab(42.82% -0.0125 -0.0903)
OKLCHoklch(42.82% 0.091 262.1)
XYZxyz(8.0507, 7.7369, 21.8337)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E81 #816633
analogous
#337581 #334E81 #3F3381
triadic
#334E81 #81334E #4E8133
tetradic
#334E81 #813375 #816633 #33813F
square
#334E81 #813375 #816633 #33813F
split-complementary
#334E81 #813F33 #758133
monochromatic
#101929 #223355 #334E81 #4469AD #6A89C4

Accessibility & contrast

On white

8.24
#334E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E81
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E81#FFFFFF#000000##FFFFFF
##334E811.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395383
Deuteranopia (green-blind)
#2E4B80
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334e81;
/* rgb */ color: rgb(51, 78, 129);
/* oklch */ color: oklch(42.8% 0.091 262.1);
Tailwind
colors: {
  custom: {
    50: '#727fa6',
    500: '#334e81',
    950: '#000000',
  },
}
SCSS
$custom: #334e81;
$custom-light: #727fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#334e81",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 219.231,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42816,
    "c": 0.09116,
    "h": 262.1
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#334E81
secondary
#AC9364
accent
#A755D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #334E81

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

Preview Lab → · Contrast checker → · Palette generator →

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