#335AC1#335AC1

#335AC1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.168 H 265.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#335AC1
RGBrgb(51, 90, 193)
HSLhsl(224, 58%, 48%)
HSVhsv(224, 74%, 76%)
CMYKcmyk(73.6%, 53.4%, 0%, 24.3%)
CIE-LABlab(41.00, 22.35, -58.01)
CIE-LCHlch(41.00, 62.17, 291.07°)
OKLaboklab(49.94% -0.0142 -0.167)
OKLCHoklch(49.94% 0.168 265.2)
XYZxyz(14.6437, 11.8648, 51.9601)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC1 #C19A33
analogous
#33A1C1 #335AC1 #5333C1
triadic
#335AC1 #C1335A #5AC133
tetradic
#335AC1 #C133A1 #C19A33 #33C153
square
#335AC1 #C133A1 #C19A33 #33C153
split-complementary
#335AC1 #C15333 #A1C133
monochromatic
#192D60 #264391 #335AC1 #5D7ED4 #8DA4E1

Accessibility & contrast

On white

6.23
#335AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#335AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC1
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC1#FFFFFF#000000##FFFFFF
##335AC11.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B68C5
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335ac1;
/* rgb */ color: rgb(51, 90, 193);
/* oklch */ color: oklch(49.9% 0.168 265.2);
Tailwind
colors: {
  custom: {
    50: '#7e88d4',
    500: '#335ac1',
    950: '#000000',
  },
}
SCSS
$custom: #335ac1;
$custom-light: #7e88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac1",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 193
  },
  "hsl": {
    "h": 223.521,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49941,
    "c": 0.16763,
    "h": 265.2
  },
  "luminance": 0.11866
}

Semantic roles & 50–950 ramp

primary
#335AC1
secondary
#CBB884
accent
#B746E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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