#335291#335291

#335291 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.8% C 0.110 H 263.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#335291
RGBrgb(51, 82, 145)
HSLhsl(220, 48%, 38%)
HSVhsv(220, 65%, 57%)
CMYKcmyk(64.8%, 43.4%, 0%, 43.1%)
CIE-LABlab(35.56, 9.73, -38.25)
CIE-LCHlch(35.56, 39.47, 284.27°)
OKLaboklab(44.77% -0.0134 -0.109)
OKLCHoklch(44.77% 0.11 263)
XYZxyz(9.4916, 8.7819, 27.9774)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335291 #917233
analogous
#338191 #335291 #433391
triadic
#335291 #913352 #529133
tetradic
#335291 #913381 #917233 #339143
square
#335291 #913381 #917233 #339143
split-complementary
#335291 #914333 #819133
monochromatic
#131F36 #233864 #335291 #446CBD #7190CD

Accessibility & contrast

On white

7.62
#335291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335291
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335291#FFFFFF#000000##FFFFFF
##3352911.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355893
Deuteranopia (green-blind)
#275090
Tritanopia (blue-blind)
#00606A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335291;
/* rgb */ color: rgb(51, 82, 145);
/* oklch */ color: oklch(44.8% 0.110 263.0);
Tailwind
colors: {
  custom: {
    50: '#7482b1',
    500: '#335291',
    950: '#000000',
  },
}
SCSS
$custom: #335291;
$custom-light: #7482b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335291",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 220.213,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44768,
    "c": 0.10987,
    "h": 263
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335291

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

Preview Lab → · Contrast checker → · Palette generator →

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