#335688#335688

#335688 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.1% C 0.092 H 257.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#335688
RGBrgb(51, 86, 136)
HSLhsl(215, 45%, 37%)
HSVhsv(215, 63%, 53%)
CMYKcmyk(62.5%, 36.8%, 0%, 46.7%)
CIE-LABlab(36.24, 3.84, -31.68)
CIE-LCHlch(36.24, 31.92, 276.91°)
OKLaboklab(45.13% -0.02 -0.0898)
OKLCHoklch(45.13% 0.092 257.4)
XYZxyz(9.1354, 9.1361, 24.5698)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335688 #886533
analogous
#338188 #335688 #3B3388
triadic
#335688 #883356 #568833
tetradic
#335688 #883381 #886533 #33883B
square
#335688 #883381 #886533 #33883B
split-complementary
#335688 #883B33 #818833
monochromatic
#121E2F #223A5B #335688 #4472B5 #6D93C8

Accessibility & contrast

On white

7.43
#335688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#335688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335688
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335688#FFFFFF#000000##FFFFFF
##3356881.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415A8A
Deuteranopia (green-blind)
#355287
Tritanopia (blue-blind)
#006168
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335688;
/* rgb */ color: rgb(51, 86, 136);
/* oklch */ color: oklch(45.1% 0.092 257.4);
Tailwind
colors: {
  custom: {
    50: '#7385ab',
    500: '#335688',
    950: '#000000',
  },
}
SCSS
$custom: #335688;
$custom-light: #7385ab;
$custom-dark: #000000;
JSON
{
  "hex": "#335688",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 136
  },
  "hsl": {
    "h": 215.294,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45131,
    "c": 0.09197,
    "h": 257.4
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

primary
#335688
secondary
#B09267
accent
#9F53D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335688

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

Preview Lab → · Contrast checker → · Palette generator →

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