#335281#335281

#335281 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.086 H 258.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#335281
RGBrgb(51, 82, 129)
HSLhsl(216, 43%, 35%)
HSVhsv(216, 60%, 51%)
CMYKcmyk(60.5%, 36.4%, 0%, 49.4%)
CIE-LABlab(34.65, 3.91, -29.92)
CIE-LCHlch(34.65, 30.17, 277.45°)
OKLaboklab(43.76% -0.0173 -0.0846)
OKLCHoklch(43.76% 0.086 258.5)
XYZxyz(8.3436, 8.3227, 21.9314)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335281 #816233
analogous
#337981 #335281 #3B3381
triadic
#335281 #813352 #528133
tetradic
#335281 #813379 #816233 #33813B
square
#335281 #813379 #816233 #33813B
split-complementary
#335281 #813B33 #798133
monochromatic
#101A29 #223655 #335281 #446EAD #6A8EC4

Accessibility & contrast

On white

7.88
#335281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#335281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335281
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335281#FFFFFF#000000##FFFFFF
##3352811.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5583
Deuteranopia (green-blind)
#344E80
Tritanopia (blue-blind)
#005D63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335281;
/* rgb */ color: rgb(51, 82, 129);
/* oklch */ color: oklch(43.8% 0.086 258.5);
Tailwind
colors: {
  custom: {
    50: '#7282a6',
    500: '#335281',
    950: '#000000',
  },
}
SCSS
$custom: #335281;
$custom-light: #7282a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335281",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 129
  },
  "hsl": {
    "h": 216.154,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.08638,
    "h": 258.5
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#335281
secondary
#AC8F64
accent
#A155D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #335281

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

Preview Lab → · Contrast checker → · Palette generator →

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