#335AB7#335AB7

#335AB7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.154 H 264.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#335AB7
RGBrgb(51, 90, 183)
HSLhsl(222, 56%, 46%)
HSVhsv(222, 72%, 72%)
CMYKcmyk(72.1%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.30, 18.62, -53.31)
CIE-LCHlch(40.30, 56.46, 289.25°)
OKLaboklab(49.19% -0.0152 -0.1532)
OKLCHoklch(49.19% 0.154 264.3)
XYZxyz(13.5656, 11.4336, 46.2825)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB7 #B79033
analogous
#339CB7 #335AB7 #4E33B7
triadic
#335AB7 #B7335A #5AB733
tetradic
#335AB7 #B7339C #B79033 #33B74E
square
#335AB7 #B7339C #B79033 #33B74E
split-complementary
#335AB7 #B74E33 #9CB733
monochromatic
#182B57 #264287 #335AB7 #577BD0 #87A0DE

Accessibility & contrast

On white

6.39
#335AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#335AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB7#FFFFFF#000000##FFFFFF
##335AB71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ab7;
/* rgb */ color: rgb(51, 90, 183);
/* oklch */ color: oklch(49.2% 0.154 264.3);
Tailwind
colors: {
  custom: {
    50: '#7c88cd',
    500: '#335ab7',
    950: '#000000',
  },
}
SCSS
$custom: #335ab7;
$custom-light: #7c88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab7",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 222.273,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49188,
    "c": 0.15393,
    "h": 264.3
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#335AB7
secondary
#C7B27F
accent
#B348E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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