#335AC4#335AC4

#335AC4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.2% C 0.172 H 265.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#335AC4
RGBrgb(51, 90, 196)
HSLhsl(224, 59%, 48%)
HSVhsv(224, 74%, 77%)
CMYKcmyk(74%, 54.1%, 0%, 23.1%)
CIE-LABlab(41.22, 23.47, -59.41)
CIE-LCHlch(41.22, 63.88, 291.56°)
OKLaboklab(50.17% -0.0139 -0.1711)
OKLCHoklch(50.17% 0.172 265.3)
XYZxyz(14.9817, 12.0000, 53.7405)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC4 #C49D33
analogous
#33A2C4 #335AC4 #5433C4
triadic
#335AC4 #C4335A #5AC433
tetradic
#335AC4 #C433A2 #C49D33 #33C454
square
#335AC4 #C433A2 #C49D33 #33C454
split-complementary
#335AC4 #C45433 #A2C433
monochromatic
#1A2D63 #264493 #335AC4 #5F7FD5 #8FA6E2

Accessibility & contrast

On white

6.18
#335AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#335AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC4#FFFFFF#000000##FFFFFF
##335AC41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335ac4;
/* rgb */ color: rgb(51, 90, 196);
/* oklch */ color: oklch(50.2% 0.172 265.3);
Tailwind
colors: {
  custom: {
    50: '#7e88d7',
    500: '#335ac4',
    950: '#000000',
  },
}
SCSS
$custom: #335ac4;
$custom-light: #7e88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac4",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 196
  },
  "hsl": {
    "h": 223.862,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.1717,
    "h": 265.3
  },
  "luminance": 0.12002
}

Semantic roles & 50–950 ramp

primary
#335AC4
secondary
#CDBA86
accent
#B846E2
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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