#335ABF#335ABF

#335ABF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.165 H 265.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#335ABF
RGBrgb(51, 90, 191)
HSLhsl(223, 58%, 47%)
HSVhsv(223, 73%, 75%)
CMYKcmyk(73.3%, 52.9%, 0%, 25.1%)
CIE-LABlab(40.86, 21.61, -57.08)
CIE-LCHlch(40.86, 61.03, 290.73°)
OKLaboklab(49.79% -0.0143 -0.1643)
OKLCHoklch(49.79% 0.165 265)
XYZxyz(14.4221, 11.7762, 50.7931)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ABF #BF9833
analogous
#33A0BF #335ABF #5233BF
triadic
#335ABF #BF335A #5ABF33
tetradic
#335ABF #BF33A0 #BF9833 #33BF52
square
#335ABF #BF33A0 #BF9833 #33BF52
split-complementary
#335ABF #BF5233 #A0BF33
monochromatic
#192C5E #26438F #335ABF #5C7DD3 #8CA4E0

Accessibility & contrast

On white

6.26
#335ABF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#335ABF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ABF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ABF#FFFFFF#000000##FFFFFF
##335ABF1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1267C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335abf;
/* rgb */ color: rgb(51, 90, 191);
/* oklch */ color: oklch(49.8% 0.165 265.0);
Tailwind
colors: {
  custom: {
    50: '#7d88d3',
    500: '#335abf',
    950: '#000000',
  },
}
SCSS
$custom: #335abf;
$custom-light: #7d88d3;
$custom-dark: #000000;
JSON
{
  "hex": "#335abf",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 191
  },
  "hsl": {
    "h": 223.286,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49788,
    "c": 0.16491,
    "h": 265
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#335ABF
secondary
#CBB783
accent
#B647E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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