#335282#335282

#335282 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 43.8% C 0.088 H 258.9°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#335282
RGBrgb(51, 82, 130)
HSLhsl(216, 44%, 35%)
HSVhsv(216, 61%, 51%)
CMYKcmyk(60.8%, 36.9%, 0%, 49%)
CIE-LABlab(34.70, 4.27, -30.45)
CIE-LCHlch(34.70, 30.74, 277.99°)
OKLaboklab(43.82% -0.017 -0.0862)
OKLCHoklch(43.82% 0.088 258.9)
XYZxyz(8.4104, 8.3494, 22.2831)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335282 #826333
analogous
#337982 #335282 #3C3382
triadic
#335282 #823352 #528233
tetradic
#335282 #823379 #826333 #33823C
square
#335282 #823379 #826333 #33823C
split-complementary
#335282 #823C33 #798233
monochromatic
#111B2A #223656 #335282 #446EAE #6B8EC5

Accessibility & contrast

On white

7.87
#335282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#335282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335282
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335282#FFFFFF#000000##FFFFFF
##3352821.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5684
Deuteranopia (green-blind)
#344E81
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335282;
/* rgb */ color: rgb(51, 82, 130);
/* oklch */ color: oklch(43.8% 0.088 258.9);
Tailwind
colors: {
  custom: {
    50: '#7282a6',
    500: '#335282',
    950: '#000000',
  },
}
SCSS
$custom: #335282;
$custom-light: #7282a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335282",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 130
  },
  "hsl": {
    "h": 216.456,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43821,
    "c": 0.08785,
    "h": 258.9
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#335282
secondary
#AD9064
accent
#A254D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335282

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

Preview Lab → · Contrast checker → · Palette generator →

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