#335185#335185

#335185 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.093 H 260.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#335185
RGBrgb(51, 81, 133)
HSLhsl(218, 45%, 36%)
HSVhsv(218, 62%, 52%)
CMYKcmyk(61.7%, 39.1%, 0%, 47.8%)
CIE-LABlab(34.56, 6.00, -32.51)
CIE-LCHlch(34.56, 33.06, 280.46°)
OKLaboklab(43.77% -0.015 -0.0922)
OKLCHoklch(43.77% 0.093 260.7)
XYZxyz(8.5398, 8.2814, 23.3342)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335185 #856733
analogous
#337A85 #335185 #3E3385
triadic
#335185 #853351 #518533
tetradic
#335185 #85337A #856733 #33853E
square
#335185 #85337A #856733 #33853E
split-complementary
#335185 #853E33 #7A8533
monochromatic
#111B2D #223659 #335185 #446CB1 #6C8DC7

Accessibility & contrast

On white

7.91
#335185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#335185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335185
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335185#FFFFFF#000000##FFFFFF
##3351851.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5587
Deuteranopia (green-blind)
#304E84
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335185;
/* rgb */ color: rgb(51, 81, 133);
/* oklch */ color: oklch(43.8% 0.093 260.7);
Tailwind
colors: {
  custom: {
    50: '#7281a9',
    500: '#335185',
    950: '#000000',
  },
}
SCSS
$custom: #335185;
$custom-light: #7281a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335185",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 133
  },
  "hsl": {
    "h": 218.049,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.09344,
    "h": 260.7
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#335185
secondary
#AE9465
accent
#A554D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335185

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

Preview Lab → · Contrast checker → · Palette generator →

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