#335491#335491

#335491 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.2% C 0.107 H 261.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#335491
RGBrgb(51, 84, 145)
HSLhsl(219, 48%, 38%)
HSVhsv(219, 65%, 57%)
CMYKcmyk(64.8%, 42.1%, 0%, 43.1%)
CIE-LABlab(36.15, 8.42, -37.31)
CIE-LCHlch(36.15, 38.24, 282.71°)
OKLaboklab(45.23% -0.0156 -0.1062)
OKLCHoklch(45.23% 0.107 261.6)
XYZxyz(9.6446, 9.0879, 28.0284)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335491 #917033
analogous
#338391 #335491 #413391
triadic
#335491 #913354 #549133
tetradic
#335491 #913383 #917033 #339141
square
#335491 #913383 #917033 #339141
split-complementary
#335491 #914133 #839133
monochromatic
#132036 #233A64 #335491 #446FBD #7192CD

Accessibility & contrast

On white

7.45
#335491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#335491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335491
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335491#FFFFFF#000000##FFFFFF
##3354911.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395A93
Deuteranopia (green-blind)
#2B5190
Tritanopia (blue-blind)
#00626B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335491;
/* rgb */ color: rgb(51, 84, 145);
/* oklch */ color: oklch(45.2% 0.107 261.6);
Tailwind
colors: {
  custom: {
    50: '#7483b1',
    500: '#335491',
    950: '#000000',
  },
}
SCSS
$custom: #335491;
$custom-light: #7483b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335491",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 145
  },
  "hsl": {
    "h": 218.936,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45225,
    "c": 0.10738,
    "h": 261.6
  },
  "luminance": 0.09089
}

Semantic roles & 50–950 ramp

primary
#335491
secondary
#B59B6B
accent
#A850D8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335491

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

Preview Lab → · Contrast checker → · Palette generator →

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