#335285#335285

#335285 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.092 H 259.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#335285
RGBrgb(51, 82, 133)
HSLhsl(217, 45%, 36%)
HSVhsv(217, 62%, 52%)
CMYKcmyk(61.7%, 38.3%, 0%, 47.8%)
CIE-LABlab(34.87, 5.35, -32.03)
CIE-LCHlch(34.87, 32.47, 279.48°)
OKLaboklab(44% -0.0162 -0.0908)
OKLCHoklch(44% 0.092 259.9)
XYZxyz(8.6147, 8.4311, 23.3591)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335285 #856633
analogous
#337B85 #335285 #3D3385
triadic
#335285 #853352 #528533
tetradic
#335285 #85337B #856633 #33853D
square
#335285 #85337B #856633 #33853D
split-complementary
#335285 #853D33 #7B8533
monochromatic
#111B2D #223759 #335285 #446DB1 #6C8EC7

Accessibility & contrast

On white

7.82
#335285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#335285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335285
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335285#FFFFFF#000000##FFFFFF
##3352851.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5687
Deuteranopia (green-blind)
#324E84
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335285;
/* rgb */ color: rgb(51, 82, 133);
/* oklch */ color: oklch(44.0% 0.092 259.9);
Tailwind
colors: {
  custom: {
    50: '#7282a9',
    500: '#335285',
    950: '#000000',
  },
}
SCSS
$custom: #335285;
$custom-light: #7282a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335285",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 133
  },
  "hsl": {
    "h": 217.317,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44003,
    "c": 0.09224,
    "h": 259.9
  },
  "luminance": 0.08432
}

Semantic roles & 50–950 ramp

primary
#335285
secondary
#AE9365
accent
#A454D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335285

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

Preview Lab → · Contrast checker → · Palette generator →

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