#335194#335194

#335194 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.7% C 0.116 H 264.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#335194
RGBrgb(51, 81, 148)
HSLhsl(221, 49%, 39%)
HSVhsv(221, 66%, 58%)
CMYKcmyk(65.5%, 45.3%, 0%, 42%)
CIE-LABlab(35.45, 11.49, -40.25)
CIE-LCHlch(35.45, 41.86, 285.94°)
OKLaboklab(44.74% -0.0118 -0.1149)
OKLCHoklch(44.74% 0.116 264.1)
XYZxyz(9.6511, 8.7259, 29.1869)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335194 #947633
analogous
#338294 #335194 #463394
triadic
#335194 #943351 #519433
tetradic
#335194 #943382 #947633 #339446
square
#335194 #943382 #947633 #339446
split-complementary
#335194 #944633 #829433
monochromatic
#141F39 #233866 #335194 #456BBF #738FCF

Accessibility & contrast

On white

7.65
#335194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335194
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335194#FFFFFF#000000##FFFFFF
##3351941.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315897
Deuteranopia (green-blind)
#214F93
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335194;
/* rgb */ color: rgb(51, 81, 148);
/* oklch */ color: oklch(44.7% 0.116 264.1);
Tailwind
colors: {
  custom: {
    50: '#7581b4',
    500: '#335194',
    950: '#000000',
  },
}
SCSS
$custom: #335194;
$custom-light: #7581b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335194",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 148
  },
  "hsl": {
    "h": 221.443,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44743,
    "c": 0.11551,
    "h": 264.1
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#335194
secondary
#B7A06C
accent
#AE4FD8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335194

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

Preview Lab → · Contrast checker → · Palette generator →

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