#335180#335180

#335180 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.086 H 259.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#335180
RGBrgb(51, 81, 128)
HSLhsl(217, 43%, 35%)
HSVhsv(217, 60%, 50%)
CMYKcmyk(60.2%, 36.7%, 0%, 49.8%)
CIE-LABlab(34.29, 4.21, -29.87)
CIE-LCHlch(34.29, 30.16, 278.02°)
OKLaboklab(43.46% -0.0163 -0.0845)
OKLCHoklch(43.46% 0.086 259.1)
XYZxyz(8.2026, 8.1465, 21.5581)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335180 #806233
analogous
#337880 #335180 #3B3380
triadic
#335180 #803351 #518033
tetradic
#335180 #803378 #806233 #33803B
square
#335180 #803378 #806233 #33803B
split-complementary
#335180 #803B33 #788033
monochromatic
#101A28 #223554 #335180 #446DAC #6A8DC4

Accessibility & contrast

On white

7.99
#335180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#335180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335180
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335180#FFFFFF#000000##FFFFFF
##3351801.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5582
Deuteranopia (green-blind)
#344D7F
Tritanopia (blue-blind)
#005C62
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335180;
/* rgb */ color: rgb(51, 81, 128);
/* oklch */ color: oklch(43.5% 0.086 259.1);
Tailwind
colors: {
  custom: {
    50: '#7181a5',
    500: '#335180',
    950: '#000000',
  },
}
SCSS
$custom: #335180;
$custom-light: #7181a5;
$custom-dark: #000000;
JSON
{
  "hex": "#335180",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 128
  },
  "hsl": {
    "h": 216.623,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43463,
    "c": 0.08607,
    "h": 259.1
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#335180
secondary
#AB8F63
accent
#A255D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335180

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

Preview Lab → · Contrast checker → · Palette generator →

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