#335391#335391

#335391 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 45.0% C 0.109 H 262.3°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#335391
RGBrgb(51, 83, 145)
HSLhsl(220, 48%, 38%)
HSVhsv(220, 65%, 57%)
CMYKcmyk(64.8%, 42.8%, 0%, 43.1%)
CIE-LABlab(35.86, 9.07, -37.78)
CIE-LCHlch(35.86, 38.85, 283.50°)
OKLaboklab(45% -0.0145 -0.1076)
OKLCHoklch(45% 0.109 262.3)
XYZxyz(9.5675, 8.9338, 28.0028)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335391 #917133
analogous
#338291 #335391 #423391
triadic
#335391 #913353 #539133
tetradic
#335391 #913382 #917133 #339142
square
#335391 #913382 #917133 #339142
split-complementary
#335391 #914233 #829133
monochromatic
#131F36 #233964 #335391 #446DBD #7191CD

Accessibility & contrast

On white

7.53
#335391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335391
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335391#FFFFFF#000000##FFFFFF
##3353911.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375993
Deuteranopia (green-blind)
#295090
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335391;
/* rgb */ color: rgb(51, 83, 145);
/* oklch */ color: oklch(45.0% 0.109 262.3);
Tailwind
colors: {
  custom: {
    50: '#7483b1',
    500: '#335391',
    950: '#000000',
  },
}
SCSS
$custom: #335391;
$custom-light: #7483b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335391",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 145
  },
  "hsl": {
    "h": 219.574,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44996,
    "c": 0.10862,
    "h": 262.3
  },
  "luminance": 0.08935
}

Semantic roles & 50–950 ramp

primary
#335391
secondary
#B59C6B
accent
#A950D8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335391

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

Preview Lab → · Contrast checker → · Palette generator →

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