#335689#335689

#335689 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.2% C 0.093 H 257.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#335689
RGBrgb(51, 86, 137)
HSLhsl(216, 46%, 37%)
HSVhsv(216, 63%, 54%)
CMYKcmyk(62.8%, 37.2%, 0%, 46.3%)
CIE-LABlab(36.30, 4.20, -32.21)
CIE-LCHlch(36.30, 32.48, 277.43°)
OKLaboklab(45.19% -0.0198 -0.0913)
OKLCHoklch(45.19% 0.093 257.8)
XYZxyz(9.2068, 9.1647, 24.9458)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335689 #896633
analogous
#338189 #335689 #3B3389
triadic
#335689 #893356 #568933
tetradic
#335689 #893381 #896633 #33893B
square
#335689 #893381 #896633 #33893B
split-complementary
#335689 #893B33 #818933
monochromatic
#121E30 #223A5C #335689 #4472B6 #6E93C9

Accessibility & contrast

On white

7.41
#335689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335689
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335689#FFFFFF#000000##FFFFFF
##3356891.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405A8B
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#006269
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335689;
/* rgb */ color: rgb(51, 86, 137);
/* oklch */ color: oklch(45.2% 0.093 257.8);
Tailwind
colors: {
  custom: {
    50: '#7385ab',
    500: '#335689',
    950: '#000000',
  },
}
SCSS
$custom: #335689;
$custom-light: #7385ab;
$custom-dark: #000000;
JSON
{
  "hex": "#335689",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 137
  },
  "hsl": {
    "h": 215.581,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45191,
    "c": 0.09341,
    "h": 257.8
  },
  "luminance": 0.09166
}

Semantic roles & 50–950 ramp

primary
#335689
secondary
#B19367
accent
#A052D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335689

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

Preview Lab → · Contrast checker → · Palette generator →

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