#335990#335990

#335990 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.3% C 0.100 H 257.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#335990
RGBrgb(51, 89, 144)
HSLhsl(215, 48%, 38%)
HSVhsv(215, 65%, 56%)
CMYKcmyk(64.6%, 38.2%, 0%, 43.5%)
CIE-LABlab(37.59, 4.80, -34.42)
CIE-LCHlch(37.59, 34.75, 277.95°)
OKLaboklab(46.32% -0.0213 -0.0977)
OKLCHoklch(46.32% 0.1 257.7)
XYZxyz(9.9699, 9.8612, 27.7582)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335990 #906A33
analogous
#338790 #335990 #3B3390
triadic
#335990 #903359 #599033
tetradic
#335990 #903387 #906A33 #33903B
square
#335990 #903387 #906A33 #33903B
split-complementary
#335990 #903B33 #879033
monochromatic
#132136 #233D63 #335990 #4475BD #7196CD

Accessibility & contrast

On white

7.06
#335990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#335990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335990
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335990#FFFFFF#000000##FFFFFF
##3359901.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415D92
Deuteranopia (green-blind)
#34548F
Tritanopia (blue-blind)
#00666D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335990;
/* rgb */ color: rgb(51, 89, 144);
/* oklch */ color: oklch(46.3% 0.100 257.7);
Tailwind
colors: {
  custom: {
    50: '#7487b1',
    500: '#335990',
    950: '#000000',
  },
}
SCSS
$custom: #335990;
$custom-light: #7487b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335990",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 144
  },
  "hsl": {
    "h": 215.484,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46323,
    "c": 0.1,
    "h": 257.7
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#335990
secondary
#B5966A
accent
#A051D7
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335990

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

Preview Lab → · Contrast checker → · Palette generator →

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