#335182#335182

#335182 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.089 H 259.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#335182
RGBrgb(51, 81, 130)
HSLhsl(217, 44%, 35%)
HSVhsv(217, 61%, 51%)
CMYKcmyk(60.8%, 37.7%, 0%, 49%)
CIE-LABlab(34.40, 4.92, -30.93)
CIE-LCHlch(34.40, 31.32, 279.04°)
OKLaboklab(43.58% -0.0158 -0.0876)
OKLCHoklch(43.58% 0.089 259.8)
XYZxyz(8.3355, 8.1997, 22.2582)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335182 #826433
analogous
#337882 #335182 #3C3382
triadic
#335182 #823351 #518233
tetradic
#335182 #823378 #826433 #33823C
square
#335182 #823378 #826433 #33823C
split-complementary
#335182 #823C33 #788233
monochromatic
#111A2A #223656 #335182 #446CAE #6B8DC5

Accessibility & contrast

On white

7.95
#335182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#335182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335182
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335182#FFFFFF#000000##FFFFFF
##3351821.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5584
Deuteranopia (green-blind)
#324D81
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335182;
/* rgb */ color: rgb(51, 81, 130);
/* oklch */ color: oklch(43.6% 0.089 259.8);
Tailwind
colors: {
  custom: {
    50: '#7281a6',
    500: '#335182',
    950: '#000000',
  },
}
SCSS
$custom: #335182;
$custom-light: #7281a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335182",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 217.215,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43584,
    "c": 0.08901,
    "h": 259.8
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#335182
secondary
#AD9164
accent
#A354D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335182

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

Preview Lab → · Contrast checker → · Palette generator →

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