#335AA8#335AA8

#335AA8 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.133 H 262.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#335AA8
RGBrgb(51, 90, 168)
HSLhsl(220, 53%, 43%)
HSVhsv(220, 70%, 66%)
CMYKcmyk(69.6%, 46.4%, 0%, 34.1%)
CIE-LABlab(39.31, 13.02, -46.05)
CIE-LCHlch(39.31, 47.86, 285.78°)
OKLaboklab(48.12% -0.0173 -0.1318)
OKLCHoklch(48.12% 0.133 262.5)
XYZxyz(12.0868, 10.8421, 38.4939)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA8 #A88133
analogous
#3394A8 #335AA8 #4633A8
triadic
#335AA8 #A8335A #5AA833
tetradic
#335AA8 #A83394 #A88133 #33A846
square
#335AA8 #A83394 #A88133 #33A846
split-complementary
#335AA8 #A84633 #94A833
monochromatic
#16284A #254179 #335AA8 #4F78C9 #7E9CD8

Accessibility & contrast

On white

6.63
#335AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA8#FFFFFF#000000##FFFFFF
##335AA81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AB
Deuteranopia (green-blind)
#1B58A6
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335aa8;
/* rgb */ color: rgb(51, 90, 168);
/* oklch */ color: oklch(48.1% 0.133 262.5);
Tailwind
colors: {
  custom: {
    50: '#7988c2',
    500: '#335aa8',
    950: '#000000',
  },
}
SCSS
$custom: #335aa8;
$custom-light: #7988c2;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa8",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 168
  },
  "hsl": {
    "h": 220,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48116,
    "c": 0.13296,
    "h": 262.5
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#335AA8
secondary
#C1A876
accent
#AC4BDD
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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