#335AB0#335AB0

#335AB0 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.144 H 263.6°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#335AB0
RGBrgb(51, 90, 176)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(71%, 48.9%, 0%, 31%)
CIE-LABlab(39.83, 16.00, -49.95)
CIE-LCHlch(39.83, 52.45, 287.77°)
OKLaboklab(48.68% -0.0161 -0.1433)
OKLCHoklch(48.68% 0.144 263.6)
XYZxyz(12.8551, 11.1494, 42.5404)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB0 #B08933
analogous
#3399B0 #335AB0 #4B33B0
triadic
#335AB0 #B0335A #5AB033
tetradic
#335AB0 #B03399 #B08933 #33B04B
square
#335AB0 #B03399 #B08933 #33B04B
split-complementary
#335AB0 #B04B33 #99B033
monochromatic
#182951 #254281 #335AB0 #5379CD #829EDB

Accessibility & contrast

On white

6.50
#335AB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#335AB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB0
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB0#FFFFFF#000000##FFFFFF
##335AB01.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B3
Deuteranopia (green-blind)
#0458AE
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ab0;
/* rgb */ color: rgb(51, 90, 176);
/* oklch */ color: oklch(48.7% 0.144 263.6);
Tailwind
colors: {
  custom: {
    50: '#7a88c8',
    500: '#335ab0',
    950: '#000000',
  },
}
SCSS
$custom: #335ab0;
$custom-light: #7a88c8;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab0",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 176
  },
  "hsl": {
    "h": 221.28,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48679,
    "c": 0.1442,
    "h": 263.6
  },
  "luminance": 0.11151
}

Semantic roles & 50–950 ramp

primary
#335AB0
secondary
#C4AD7B
accent
#B049DE
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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