#335382#335382

#335382 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.1% C 0.087 H 257.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#335382
RGBrgb(51, 83, 130)
HSLhsl(216, 44%, 35%)
HSVhsv(216, 61%, 51%)
CMYKcmyk(60.8%, 36.2%, 0%, 49%)
CIE-LABlab(35.01, 3.62, -29.96)
CIE-LCHlch(35.01, 30.18, 276.89°)
OKLaboklab(44.06% -0.0182 -0.0848)
OKLCHoklch(44.06% 0.087 257.9)
XYZxyz(8.4863, 8.5013, 22.3085)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335382 #826233
analogous
#337A82 #335382 #3A3382
triadic
#335382 #823353 #538233
tetradic
#335382 #82337A #826233 #33823A
square
#335382 #82337A #826233 #33823A
split-complementary
#335382 #823A33 #7A8233
monochromatic
#111B2A #223756 #335382 #446FAE #6B8FC5

Accessibility & contrast

On white

7.78
#335382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#335382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335382
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335382#FFFFFF#000000##FFFFFF
##3353821.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5684
Deuteranopia (green-blind)
#354F81
Tritanopia (blue-blind)
#005E64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335382;
/* rgb */ color: rgb(51, 83, 130);
/* oklch */ color: oklch(44.1% 0.087 257.9);
Tailwind
colors: {
  custom: {
    50: '#7283a6',
    500: '#335382',
    950: '#000000',
  },
}
SCSS
$custom: #335382;
$custom-light: #7283a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335382",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 130
  },
  "hsl": {
    "h": 215.696,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44059,
    "c": 0.0867,
    "h": 257.9
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#335382
secondary
#AD8F64
accent
#A054D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335382

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

Preview Lab → · Contrast checker → · Palette generator →

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