#335AB2#335AB2

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

Color values

HEX#335AB2
RGBrgb(51, 90, 178)
HSLhsl(222, 55%, 45%)
HSVhsv(222, 71%, 70%)
CMYKcmyk(71.3%, 49.4%, 0%, 30.2%)
CIE-LABlab(39.96, 16.75, -50.91)
CIE-LCHlch(39.96, 53.60, 288.21°)
OKLaboklab(48.82% -0.0158 -0.1461)
OKLCHoklch(48.82% 0.147 263.8)
XYZxyz(13.0544, 11.2291, 43.5903)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB2 #B28B33
analogous
#339AB2 #335AB2 #4C33B2
triadic
#335AB2 #B2335A #5AB233
tetradic
#335AB2 #B2339A #B28B33 #33B24C
square
#335AB2 #B2339A #B28B33 #33B24C
split-complementary
#335AB2 #B24C33 #9AB233
monochromatic
#182A53 #254282 #335AB2 #547ACE #849FDC

Accessibility & contrast

On white

6.47
#335AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335AB2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB2#FFFFFF#000000##FFFFFF
##335AB21.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ab2;
/* rgb */ color: rgb(51, 90, 178);
/* oklch */ color: oklch(48.8% 0.147 263.8);
Tailwind
colors: {
  custom: {
    50: '#7b88ca',
    500: '#335ab2',
    950: '#000000',
  },
}
SCSS
$custom: #335ab2;
$custom-light: #7b88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab2",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 221.575,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48823,
    "c": 0.14699,
    "h": 263.8
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#335AB2
secondary
#C5AF7C
accent
#B149DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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