#335CA5#335CA5

#335CA5 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.126 H 261.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#335CA5
RGBrgb(51, 92, 165)
HSLhsl(218, 53%, 42%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(69.1%, 44.2%, 0%, 35.3%)
CIE-LABlab(39.70, 10.60, -43.64)
CIE-LCHlch(39.70, 44.91, 283.65°)
OKLaboklab(48.36% -0.0198 -0.1247)
OKLCHoklch(48.36% 0.126 261)
XYZxyz(11.9815, 11.0735, 37.0960)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA5 #A57C33
analogous
#3395A5 #335CA5 #4333A5
triadic
#335CA5 #A5335C #5CA533
tetradic
#335CA5 #A53395 #A57C33 #33A543
square
#335CA5 #A53395 #A57C33 #33A543
split-complementary
#335CA5 #A54333 #95A533
monochromatic
#162848 #254276 #335CA5 #4D79C8 #7C9CD6

Accessibility & contrast

On white

6.53
#335CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA5
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA5#FFFFFF#000000##FFFFFF
##335CA51.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A8
Deuteranopia (green-blind)
#2559A4
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ca5;
/* rgb */ color: rgb(51, 92, 165);
/* oklch */ color: oklch(48.4% 0.126 261.0);
Tailwind
colors: {
  custom: {
    50: '#7889c0',
    500: '#335ca5',
    950: '#000000',
  },
}
SCSS
$custom: #335ca5;
$custom-light: #7889c0;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca5",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 218.421,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48357,
    "c": 0.12629,
    "h": 261
  },
  "luminance": 0.11075
}

Semantic roles & 50–950 ramp

primary
#335CA5
secondary
#BFA475
accent
#A84CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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