#335186#335186

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

Color values

HEX#335186
RGBrgb(51, 81, 134)
HSLhsl(218, 45%, 36%)
HSVhsv(218, 62%, 53%)
CMYKcmyk(61.9%, 39.6%, 0%, 47.5%)
CIE-LABlab(34.62, 6.37, -33.03)
CIE-LCHlch(34.62, 33.64, 280.91°)
OKLaboklab(43.83% -0.0148 -0.0938)
OKLCHoklch(43.83% 0.095 261)
XYZxyz(8.6092, 8.3091, 23.6998)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335186 #866833
analogous
#337B86 #335186 #3F3386
triadic
#335186 #863351 #518633
tetradic
#335186 #86337B #866833 #33863F
square
#335186 #86337B #866833 #33863F
split-complementary
#335186 #863F33 #7B8633
monochromatic
#111B2D #22365A #335186 #446CB2 #6C8DC7

Accessibility & contrast

On white

7.89
#335186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335186
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335186#FFFFFF#000000##FFFFFF
##3351861.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5688
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335186;
/* rgb */ color: rgb(51, 81, 134);
/* oklch */ color: oklch(43.8% 0.095 261.0);
Tailwind
colors: {
  custom: {
    50: '#7281a9',
    500: '#335186',
    950: '#000000',
  },
}
SCSS
$custom: #335186;
$custom-light: #7281a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335186",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 218.313,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4383,
    "c": 0.09492,
    "h": 261
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#335186
secondary
#AF9566
accent
#A653D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335186

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

Preview Lab → · Contrast checker → · Palette generator →

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