#335381#335381

#335381 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.0% C 0.085 H 257.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#335381
RGBrgb(51, 83, 129)
HSLhsl(215, 43%, 35%)
HSVhsv(215, 60%, 51%)
CMYKcmyk(60.5%, 35.7%, 0%, 49.4%)
CIE-LABlab(34.95, 3.27, -29.43)
CIE-LCHlch(34.95, 29.61, 276.33°)
OKLaboklab(44% -0.0184 -0.0832)
OKLCHoklch(44% 0.085 257.5)
XYZxyz(8.4196, 8.4746, 21.9567)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335381 #816133
analogous
#337A81 #335381 #3A3381
triadic
#335381 #813353 #538133
tetradic
#335381 #81337A #816133 #33813A
square
#335381 #81337A #816133 #33813A
split-complementary
#335381 #813A33 #7A8133
monochromatic
#101B29 #223755 #335381 #446FAD #6A8FC4

Accessibility & contrast

On white

7.79
#335381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335381
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335381#FFFFFF#000000##FFFFFF
##3353811.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405683
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335381;
/* rgb */ color: rgb(51, 83, 129);
/* oklch */ color: oklch(44.0% 0.085 257.5);
Tailwind
colors: {
  custom: {
    50: '#7283a6',
    500: '#335381',
    950: '#000000',
  },
}
SCSS
$custom: #335381;
$custom-light: #7283a6;
$custom-dark: #000000;
JSON
{
  "hex": "#335381",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 129
  },
  "hsl": {
    "h": 215.385,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44,
    "c": 0.08524,
    "h": 257.5
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335381

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

Preview Lab → · Contrast checker → · Palette generator →

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