#335793#335793

#335793 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.107 H 260.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#335793
RGBrgb(51, 87, 147)
HSLhsl(218, 48%, 39%)
HSVhsv(218, 65%, 58%)
CMYKcmyk(65.3%, 40.8%, 0%, 42.4%)
CIE-LABlab(37.16, 7.19, -36.91)
CIE-LCHlch(37.16, 37.61, 281.03°)
OKLaboklab(46.05% -0.0184 -0.105)
OKLCHoklch(46.05% 0.107 260.1)
XYZxyz(10.0380, 9.6258, 28.9271)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335793 #936F33
analogous
#338793 #335793 #3F3393
triadic
#335793 #933357 #579333
tetradic
#335793 #933387 #936F33 #33933F
square
#335793 #933387 #936F33 #33933F
split-complementary
#335793 #933F33 #879333
monochromatic
#132138 #233C66 #335793 #4572BE #7295CE

Accessibility & contrast

On white

7.18
#335793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#335793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335793
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335793#FFFFFF#000000##FFFFFF
##3357931.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5C95
Deuteranopia (green-blind)
#2E5392
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335793;
/* rgb */ color: rgb(51, 87, 147);
/* oklch */ color: oklch(46.0% 0.107 260.1);
Tailwind
colors: {
  custom: {
    50: '#7586b3',
    500: '#335793',
    950: '#000000',
  },
}
SCSS
$custom: #335793;
$custom-light: #7586b3;
$custom-dark: #000000;
JSON
{
  "hex": "#335793",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 147
  },
  "hsl": {
    "h": 217.5,
    "s": 48.485,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46045,
    "c": 0.10664,
    "h": 260.1
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#335793
secondary
#B69A6C
accent
#A550D8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335793

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

Preview Lab → · Contrast checker → · Palette generator →

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