#335AAB#335AAB

#335AAB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.137 H 263.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#335AAB
RGBrgb(51, 90, 171)
HSLhsl(221, 54%, 44%)
HSVhsv(221, 70%, 67%)
CMYKcmyk(70.2%, 47.4%, 0%, 32.9%)
CIE-LABlab(39.50, 14.14, -47.52)
CIE-LCHlch(39.50, 49.58, 286.57°)
OKLaboklab(48.33% -0.0168 -0.1362)
OKLCHoklch(48.33% 0.137 263)
XYZxyz(12.3695, 10.9551, 39.9828)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AAB #AB8433
analogous
#3396AB #335AAB #4833AB
triadic
#335AAB #AB335A #5AAB33
tetradic
#335AAB #AB3396 #AB8433 #33AB48
square
#335AAB #AB3396 #AB8433 #33AB48
split-complementary
#335AAB #AB4833 #96AB33
monochromatic
#17284D #25417C #335AAB #5078CB #7F9DD9

Accessibility & contrast

On white

6.58
#335AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AAB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AAB#FFFFFF#000000##FFFFFF
##335AAB1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AE
Deuteranopia (green-blind)
#1558A9
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335aab;
/* rgb */ color: rgb(51, 90, 171);
/* oklch */ color: oklch(48.3% 0.137 263.0);
Tailwind
colors: {
  custom: {
    50: '#7988c4',
    500: '#335aab',
    950: '#000000',
  },
}
SCSS
$custom: #335aab;
$custom-light: #7988c4;
$custom-dark: #000000;
JSON
{
  "hex": "#335aab",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 220.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48325,
    "c": 0.13719,
    "h": 263
  },
  "luminance": 0.10956
}

Semantic roles & 50–950 ramp

primary
#335AAB
secondary
#C2AA78
accent
#AE4ADD
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AAB

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

Preview Lab → · Contrast checker → · Palette generator →

#335AAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva