#335AB1#335AB1

#335AB1 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.146 H 263.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#335AB1
RGBrgb(51, 90, 177)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(71.2%, 49.2%, 0%, 30.6%)
CIE-LABlab(39.90, 16.38, -50.43)
CIE-LCHlch(39.90, 53.03, 287.99°)
OKLaboklab(48.75% -0.0159 -0.1447)
OKLCHoklch(48.75% 0.146 263.7)
XYZxyz(12.9544, 11.1891, 43.0634)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB1 #B18A33
analogous
#3399B1 #335AB1 #4B33B1
triadic
#335AB1 #B1335A #5AB133
tetradic
#335AB1 #B13399 #B18A33 #33B14B
square
#335AB1 #B13399 #B18A33 #33B14B
split-complementary
#335AB1 #B14B33 #99B133
monochromatic
#182A52 #254281 #335AB1 #5479CE #839EDB

Accessibility & contrast

On white

6.49
#335AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB1
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB1#FFFFFF#000000##FFFFFF
##335AB11.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#0059AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ab1;
/* rgb */ color: rgb(51, 90, 177);
/* oklch */ color: oklch(48.8% 0.146 263.7);
Tailwind
colors: {
  custom: {
    50: '#7a88c9',
    500: '#335ab1',
    950: '#000000',
  },
}
SCSS
$custom: #335ab1;
$custom-light: #7a88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab1",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 221.429,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48751,
    "c": 0.1456,
    "h": 263.7
  },
  "luminance": 0.1119
}

Semantic roles & 50–950 ramp

primary
#335AB1
secondary
#C5AE7B
accent
#B049DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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