#335396#335396

#335396 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.3% C 0.116 H 263.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#335396
RGBrgb(51, 83, 150)
HSLhsl(221, 49%, 39%)
HSVhsv(221, 66%, 59%)
CMYKcmyk(66%, 44.7%, 0%, 41.2%)
CIE-LABlab(36.16, 10.91, -40.32)
CIE-LCHlch(36.16, 41.78, 285.14°)
OKLaboklab(45.33% -0.0135 -0.1151)
OKLCHoklch(45.33% 0.116 263.3)
XYZxyz(9.9616, 9.0914, 30.0781)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335396 #967633
analogous
#338596 #335396 #453396
triadic
#335396 #963353 #539633
tetradic
#335396 #963385 #967633 #339645
square
#335396 #963385 #967633 #339645
split-complementary
#335396 #964533 #859633
monochromatic
#14203B #233A68 #335396 #466EC0 #7491D0

Accessibility & contrast

On white

7.45
#335396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#335396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335396
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335396#FFFFFF#000000##FFFFFF
##3353961.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A99
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335396;
/* rgb */ color: rgb(51, 83, 150);
/* oklch */ color: oklch(45.3% 0.116 263.3);
Tailwind
colors: {
  custom: {
    50: '#7582b5',
    500: '#335396',
    950: '#000000',
  },
}
SCSS
$custom: #335396;
$custom-light: #7582b5;
$custom-dark: #000000;
JSON
{
  "hex": "#335396",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 150
  },
  "hsl": {
    "h": 220.606,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45328,
    "c": 0.1159,
    "h": 263.3
  },
  "luminance": 0.09092
}

Semantic roles & 50–950 ramp

primary
#335396
secondary
#B8A06D
accent
#AC4FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335396

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

Preview Lab → · Contrast checker → · Palette generator →

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