#335CA1#335CA1

#335CA1 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.121 H 260.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#335CA1
RGBrgb(51, 92, 161)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 68%, 63%)
CMYKcmyk(68.3%, 42.9%, 0%, 36.9%)
CIE-LABlab(39.46, 9.12, -41.65)
CIE-LCHlch(39.46, 42.64, 282.35°)
OKLaboklab(48.09% -0.0206 -0.1189)
OKLCHoklch(48.09% 0.121 260.2)
XYZxyz(11.6231, 10.9301, 35.2085)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA1 #A17833
analogous
#3393A1 #335CA1 #4133A1
triadic
#335CA1 #A1335C #5CA133
tetradic
#335CA1 #A13393 #A17833 #33A141
square
#335CA1 #A13393 #A17833 #33A141
split-complementary
#335CA1 #A14133 #93A133
monochromatic
#162744 #244173 #335CA1 #4B79C6 #7A9CD5

Accessibility & contrast

On white

6.59
#335CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA1
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA1#FFFFFF#000000##FFFFFF
##335CA11.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C62A4
Deuteranopia (green-blind)
#2A58A0
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ca1;
/* rgb */ color: rgb(51, 92, 161);
/* oklch */ color: oklch(48.1% 0.121 260.2);
Tailwind
colors: {
  custom: {
    50: '#7789bd',
    500: '#335ca1',
    950: '#000000',
  },
}
SCSS
$custom: #335ca1;
$custom-light: #7789bd;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca1",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 161
  },
  "hsl": {
    "h": 217.636,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48092,
    "c": 0.12064,
    "h": 260.2
  },
  "luminance": 0.10931
}

Semantic roles & 50–950 ramp

primary
#335CA1
secondary
#BDA172
accent
#A64CDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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