#335091#335091

#335091 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.112 H 264.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#335091
RGBrgb(51, 80, 145)
HSLhsl(221, 48%, 38%)
HSVhsv(221, 65%, 57%)
CMYKcmyk(64.8%, 44.8%, 0%, 43.1%)
CIE-LABlab(34.97, 11.05, -39.19)
CIE-LCHlch(34.97, 40.72, 285.74°)
OKLaboklab(44.32% -0.0113 -0.1118)
OKLCHoklch(44.32% 0.112 264.2)
XYZxyz(9.3430, 8.4846, 27.9279)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335091 #917433
analogous
#337F91 #335091 #453391
triadic
#335091 #913350 #509133
tetradic
#335091 #91337F #917433 #339145
square
#335091 #91337F #917433 #339145
split-complementary
#335091 #914533 #7F9133
monochromatic
#131E36 #233764 #335091 #4469BD #718ECD

Accessibility & contrast

On white

7.79
#335091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#335091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335091
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335091#FFFFFF#000000##FFFFFF
##3350911.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325793
Deuteranopia (green-blind)
#234E90
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335091;
/* rgb */ color: rgb(51, 80, 145);
/* oklch */ color: oklch(44.3% 0.112 264.2);
Tailwind
colors: {
  custom: {
    50: '#7480b2',
    500: '#335091',
    950: '#000000',
  },
}
SCSS
$custom: #335091;
$custom-light: #7480b2;
$custom-dark: #000000;
JSON
{
  "hex": "#335091",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 145
  },
  "hsl": {
    "h": 221.489,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44315,
    "c": 0.11239,
    "h": 264.2
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#335091
secondary
#B59E6B
accent
#AE50D8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335091

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

Preview Lab → · Contrast checker → · Palette generator →

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