#335380#335380

#335380 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 43.9% C 0.084 H 257.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#335380
RGBrgb(51, 83, 128)
HSLhsl(215, 43%, 35%)
HSVhsv(215, 60%, 50%)
CMYKcmyk(60.2%, 35.2%, 0%, 49.8%)
CIE-LABlab(34.90, 2.91, -28.90)
CIE-LCHlch(34.90, 29.05, 275.75°)
OKLaboklab(43.94% -0.0187 -0.0817)
OKLCHoklch(43.94% 0.084 257.1)
XYZxyz(8.3534, 8.4481, 21.6083)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335380 #806033
analogous
#337980 #335380 #393380
triadic
#335380 #803353 #538033
tetradic
#335380 #803379 #806033 #338039
square
#335380 #803379 #806033 #338039
split-complementary
#335380 #803933 #798033
monochromatic
#101A28 #223754 #335380 #446FAC #6A8FC4

Accessibility & contrast

On white

7.81
#335380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#335380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335380
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335380#FFFFFF#000000##FFFFFF
##3353801.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405682
Deuteranopia (green-blind)
#364F7F
Tritanopia (blue-blind)
#005D63
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335380;
/* rgb */ color: rgb(51, 83, 128);
/* oklch */ color: oklch(43.9% 0.084 257.1);
Tailwind
colors: {
  custom: {
    50: '#7183a5',
    500: '#335380',
    950: '#000000',
  },
}
SCSS
$custom: #335380;
$custom-light: #7183a5;
$custom-dark: #000000;
JSON
{
  "hex": "#335380",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 128
  },
  "hsl": {
    "h": 215.065,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.08379,
    "h": 257.1
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#335380
secondary
#AB8D63
accent
#9F55D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335380

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

Preview Lab → · Contrast checker → · Palette generator →

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