#335894#335894

#335894 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.107 H 259.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#335894
RGBrgb(51, 88, 148)
HSLhsl(217, 49%, 39%)
HSVhsv(217, 66%, 58%)
CMYKcmyk(65.5%, 40.5%, 0%, 42%)
CIE-LABlab(37.52, 6.91, -36.95)
CIE-LCHlch(37.52, 37.59, 280.60°)
OKLaboklab(46.34% -0.0193 -0.1051)
OKLCHoklch(46.34% 0.107 259.6)
XYZxyz(10.1984, 9.8204, 29.3693)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335894 #946F33
analogous
#338994 #335894 #3E3394
triadic
#335894 #943358 #589433
tetradic
#335894 #943389 #946F33 #33943E
square
#335894 #943389 #946F33 #33943E
split-complementary
#335894 #943E33 #899433
monochromatic
#142239 #233D66 #335894 #4574BF #7396CF

Accessibility & contrast

On white

7.08
#335894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#335894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335894
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335894#FFFFFF#000000##FFFFFF
##3358941.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5D96
Deuteranopia (green-blind)
#2F5493
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335894;
/* rgb */ color: rgb(51, 88, 148);
/* oklch */ color: oklch(46.3% 0.107 259.6);
Tailwind
colors: {
  custom: {
    50: '#7586b4',
    500: '#335894',
    950: '#000000',
  },
}
SCSS
$custom: #335894;
$custom-light: #7586b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335894",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 148
  },
  "hsl": {
    "h": 217.113,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46339,
    "c": 0.10689,
    "h": 259.6
  },
  "luminance": 0.09821
}

Semantic roles & 50–950 ramp

primary
#335894
secondary
#B79A6C
accent
#A44FD8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335894

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

Preview Lab → · Contrast checker → · Palette generator →

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