#334682#334682

#334682 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.103 H 268.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#334682
RGBrgb(51, 70, 130)
HSLhsl(226, 44%, 35%)
HSVhsv(226, 61%, 51%)
CMYKcmyk(60.8%, 46.2%, 0%, 49%)
CIE-LABlab(31.10, 12.22, -36.16)
CIE-LCHlch(31.10, 38.17, 288.67°)
OKLaboklab(41.04% -0.0029 -0.1031)
OKLCHoklch(41.04% 0.103 268.4)
XYZxyz(7.5833, 6.6952, 22.0075)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334682 #826F33
analogous
#336D82 #334682 #483382
triadic
#334682 #823346 #468233
tetradic
#334682 #82336D #826F33 #338248
square
#334682 #82336D #826F33 #338248
split-complementary
#334682 #824833 #6D8233
monochromatic
#11172A #222E56 #334682 #445EAE #6B80C5

Accessibility & contrast

On white

8.98
#334682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334682
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334682#FFFFFF#000000##FFFFFF
##3346821.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D84
Deuteranopia (green-blind)
#1F4681
Tritanopia (blue-blind)
#00535D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334682;
/* rgb */ color: rgb(51, 70, 130);
/* oklch */ color: oklch(41.0% 0.103 268.4);
Tailwind
colors: {
  custom: {
    50: '#7279a7',
    500: '#334682',
    950: '#000000',
  },
}
SCSS
$custom: #334682;
$custom-light: #7279a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334682",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 130
  },
  "hsl": {
    "h": 225.57,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41043,
    "c": 0.1031,
    "h": 268.4
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#334682
secondary
#AD9B64
accent
#B554D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334682

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

Preview Lab → · Contrast checker → · Palette generator →

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