#335AB3#335AB3

#335AB3 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.148 H 263.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#335AB3
RGBrgb(51, 90, 179)
HSLhsl(222, 56%, 45%)
HSVhsv(222, 72%, 70%)
CMYKcmyk(71.5%, 49.7%, 0%, 29.8%)
CIE-LABlab(40.03, 17.13, -51.39)
CIE-LCHlch(40.03, 54.17, 288.43°)
OKLaboklab(48.9% -0.0157 -0.1475)
OKLCHoklch(48.9% 0.148 263.9)
XYZxyz(13.1552, 11.2694, 44.1210)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB3 #B38C33
analogous
#339AB3 #335AB3 #4C33B3
triadic
#335AB3 #B3335A #5AB333
tetradic
#335AB3 #B3339A #B38C33 #33B34C
square
#335AB3 #B3339A #B38C33 #33B34C
split-complementary
#335AB3 #B34C33 #9AB333
monochromatic
#182A54 #254283 #335AB3 #557ACE #849FDC

Accessibility & contrast

On white

6.45
#335AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#335AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB3
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB3#FFFFFF#000000##FFFFFF
##335AB31.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ab3;
/* rgb */ color: rgb(51, 90, 179);
/* oklch */ color: oklch(48.9% 0.148 263.9);
Tailwind
colors: {
  custom: {
    50: '#7b88ca',
    500: '#335ab3',
    950: '#000000',
  },
}
SCSS
$custom: #335ab3;
$custom-light: #7b88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab3",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 221.719,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48896,
    "c": 0.14838,
    "h": 263.9
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#335AB3
secondary
#C6AF7C
accent
#B149DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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