#334780#334780

#334780 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.099 H 267.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#334780
RGBrgb(51, 71, 128)
HSLhsl(224, 43%, 35%)
HSVhsv(224, 60%, 50%)
CMYKcmyk(60.2%, 44.5%, 0%, 49.8%)
CIE-LABlab(31.27, 10.82, -34.65)
CIE-LCHlch(31.27, 36.30, 287.35°)
OKLaboklab(41.13% -0.0044 -0.0986)
OKLCHoklch(41.13% 0.099 267.4)
XYZxyz(7.5134, 6.7682, 21.3283)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334780 #806C33
analogous
#336D80 #334780 #463380
triadic
#334780 #803347 #478033
tetradic
#334780 #80336D #806C33 #338046
square
#334780 #80336D #806C33 #338046
split-complementary
#334780 #804633 #6D8033
monochromatic
#101628 #222F54 #334780 #445FAC #6A81C4

Accessibility & contrast

On white

8.92
#334780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#334780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334780
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334780#FFFFFF#000000##FFFFFF
##3347801.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D82
Deuteranopia (green-blind)
#23467F
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334780;
/* rgb */ color: rgb(51, 71, 128);
/* oklch */ color: oklch(41.1% 0.099 267.4);
Tailwind
colors: {
  custom: {
    50: '#7279a5',
    500: '#334780',
    950: '#000000',
  },
}
SCSS
$custom: #334780;
$custom-light: #7279a5;
$custom-dark: #000000;
JSON
{
  "hex": "#334780",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 128
  },
  "hsl": {
    "h": 224.416,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.0987,
    "h": 267.4
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#334780
secondary
#AB9963
accent
#B255D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334780

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

Preview Lab → · Contrast checker → · Palette generator →

#334780 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva