#335191#335191

#335191 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.111 H 263.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#335191
RGBrgb(51, 81, 145)
HSLhsl(221, 48%, 38%)
HSVhsv(221, 65%, 57%)
CMYKcmyk(64.8%, 44.1%, 0%, 43.1%)
CIE-LABlab(35.27, 10.39, -38.72)
CIE-LCHlch(35.27, 40.09, 285.02°)
OKLaboklab(44.54% -0.0124 -0.1104)
OKLCHoklch(44.54% 0.111 263.6)
XYZxyz(9.4167, 8.6321, 27.9525)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335191 #917333
analogous
#338091 #335191 #443391
triadic
#335191 #913351 #519133
tetradic
#335191 #913380 #917333 #339144
square
#335191 #913380 #917333 #339144
split-complementary
#335191 #914433 #809133
monochromatic
#131E36 #233864 #335191 #446BBD #718FCD

Accessibility & contrast

On white

7.70
#335191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#335191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335191
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335191#FFFFFF#000000##FFFFFF
##3351911.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335893
Deuteranopia (green-blind)
#254F90
Tritanopia (blue-blind)
#00606A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335191;
/* rgb */ color: rgb(51, 81, 145);
/* oklch */ color: oklch(44.5% 0.111 263.6);
Tailwind
colors: {
  custom: {
    50: '#7481b2',
    500: '#335191',
    950: '#000000',
  },
}
SCSS
$custom: #335191;
$custom-light: #7481b2;
$custom-dark: #000000;
JSON
{
  "hex": "#335191",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 145
  },
  "hsl": {
    "h": 220.851,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44541,
    "c": 0.11112,
    "h": 263.6
  },
  "luminance": 0.08633
}

Semantic roles & 50–950 ramp

primary
#335191
secondary
#B59D6B
accent
#AC50D8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335191

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

Preview Lab → · Contrast checker → · Palette generator →

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