#335397#335397

#335397 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.4% C 0.117 H 263.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#335397
RGBrgb(51, 83, 151)
HSLhsl(221, 50%, 40%)
HSVhsv(221, 66%, 59%)
CMYKcmyk(66.2%, 45%, 0%, 40.8%)
CIE-LABlab(36.22, 11.28, -40.83)
CIE-LCHlch(36.22, 42.36, 285.45°)
OKLaboklab(45.4% -0.0133 -0.1166)
OKLCHoklch(45.4% 0.117 263.5)
XYZxyz(10.0425, 9.1237, 30.5040)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335397 #977733
analogous
#338597 #335397 #453397
triadic
#335397 #973353 #539733
tetradic
#335397 #973385 #977733 #339745
square
#335397 #973385 #977733 #339745
split-complementary
#335397 #974533 #859733
monochromatic
#14213C #243A69 #335397 #476EC1 #7492D0

Accessibility & contrast

On white

7.43
#335397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#335397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335397
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335397#FFFFFF#000000##FFFFFF
##3353971.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335397;
/* rgb */ color: rgb(51, 83, 151);
/* oklch */ color: oklch(45.4% 0.117 263.5);
Tailwind
colors: {
  custom: {
    50: '#7582b6',
    500: '#335397',
    950: '#000000',
  },
}
SCSS
$custom: #335397;
$custom-light: #7582b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335397",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 220.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.11735,
    "h": 263.5
  },
  "luminance": 0.09125
}

Semantic roles & 50–950 ramp

primary
#335397
secondary
#B8A06D
accent
#AD4FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335397

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

Preview Lab → · Contrast checker → · Palette generator →

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